- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 12:39 AM
Hi Guys ,
between Client script and UI policies client script executes the first BUT why and how can someone give me overall explanation for this ? it was interview question so its important.
thanks!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 12:51 AM
1. Difference in Execution:
Client Scripts: Client Scripts execute before the form loads or when a field changes. They run in the user's browser and can dynamically change the form's behavior based on certain conditions. For instance, events like onChange, onLoad, or onSubmit trigger these scripts.
UI Policies: UI Policies control UI elements such as field visibility, mandatory status, and read-only status. They execute after the form loads, and their associated actions are triggered when their conditions are met.
2. Reason for Execution Order:
Client Scripts execute before UI Policies because Client Scripts need to respond immediately to user actions. For example, Client Scripts react instantly to field changes or form loading, allowing real-time customization of the form’s behavior. UI Policies, on the other hand, adjust the display and state of the UI elements. Therefore, Client Scripts set the necessary data or state first, followed by the application of UI Policies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 12:51 AM
1. Difference in Execution:
Client Scripts: Client Scripts execute before the form loads or when a field changes. They run in the user's browser and can dynamically change the form's behavior based on certain conditions. For instance, events like onChange, onLoad, or onSubmit trigger these scripts.
UI Policies: UI Policies control UI elements such as field visibility, mandatory status, and read-only status. They execute after the form loads, and their associated actions are triggered when their conditions are met.
2. Reason for Execution Order:
Client Scripts execute before UI Policies because Client Scripts need to respond immediately to user actions. For example, Client Scripts react instantly to field changes or form loading, allowing real-time customization of the form’s behavior. UI Policies, on the other hand, adjust the display and state of the UI elements. Therefore, Client Scripts set the necessary data or state first, followed by the application of UI Policies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 01:37 AM
Fair Enough thank you @HIROSHI SATOH for your explanation.