which one is execute forst ui policy or client script? explain?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 08:59 PM
fg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 09:17 PM
HI Raj,
In simple terms, both UI Policy & Client Script are almost similar only thing is scripting is involved in Client script, also client scripts excutes first when compared to UI Policies.
1. ui policies are alternate to client scripts.
2. Always use Ui policy for making fields read-only and Mandatory & Hiding.
Although the Order field is not on the Client Script form baseline you can customize the form to add it.
UI Policies execute after Client Scripts. If there is conflicting logic between a Client Script and a UI Policy, the UI Policy logic applies.
refer:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 09:19 PM
Hi Rajashekhar,
Client script will execute first. And go though the Article in this they have explained it perfectly.
A Race between UI Policy and Client script
Please like, tag helpful or mark it as the correct answer.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 09:40 PM
Hi Rajasekhar,
Client scripts are executed before UI policy.
Client Script(onLoad()) -> UI policy without condition -> UI policy with condition -> data policy.
Let me know if you have any queries.