- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2018 09:24 PM
can we write the script in UI Policies, and want to know the example scenario.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2018 10:30 PM
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2018 10:30 PM
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2019 03:46 AM
Hi,
Yes you can write the script in the UI policies but it is not considered as a BEST Practice.
If you want to make a fields as Mandatory or Read Only or Visible then go for UI Policy and add the appropriate UI Action other than that if you want to perform any Form Validations then go for Client Script.
Although, if you wanna write the script in the UI Policy then there is a Section as "Script". Under that there is a field as "Run Script". Select it, now you will see the area under which you can write your script.
Remember there are 2 different section for script:
1) Execute If True - Runs when the condition specified in the UI Policy matches
2) Execute If False - Runs when the condition specified in the UI Policy does not match.
Please Mark It as Helpful if you find the above information as Correct.
Regards,
Sourabh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2024 03:31 PM
Yes, you can write, one of the scenario is to hide a related list based on condition