Skip to main content
Topic: Hide or put in field reading mode depending on a value (Read 1263 times) previous topic - next topic

Hide or put in field reading mode depending on a value

Hello everyone, I need to hide fields or put them in read-only mode, depending on the selection of a previous value …
Example:
Person :
per_id,
per_dni,
per_name,
per_gender,
per_pregnancy,
per_fechaparto,
per_disability,
per_discapacidadetail

When selecting value 1 in per_gender which is = a Female, I show or remove only reading of the per_pregnancy and per_fechaparto fields.
On the contrary, if I select 2 in per_gender that is = Male, I should hide or read only the fields per_pregnancy and per_fechaparto.
Thx!