To dynamically hide a field in this example, the macro sc_field_display is used, which is responsible for hiding or dynamically displaying a field or several.
This macro has scope in the following events:
In this example, it will be used within an AJAX event of type onChange:
- The onChange type event is created:
- Now the macro sc_field_display will be used by means of a condition that is going to hide or show a field dynamically:
- We save the changes and execute the application
- When executing all the fields are shown, and also the field "state" which must be hidden by means of the change that is applied to the field "familia_id"
- Then changing the field "email" and the "customersid" is even, it hides the field "status"