Business rule OR Client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2023 08:42 AM
Hello guys, if we have a field in a form for exemple the incident table and we want to change the behavior of a another field in the same form and in the same table based on values we put in the other field. what would be best practice to implement this solution is it business rule or a client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2023 08:49 AM
Hello @yoli1
Client Script is the Better Option, There will be 4 types:-
1. OnLOAD()
2. onChange()
3. onSubmit();
4. onCellEdit();
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2023 01:53 PM
Hi @yoli1 ,
I would say it’s based on what exactly you would like to do in the form? If the other field should update / change in behavior before save/submit, a UI policy with a UI policy action could also be a solution. So to guide you the best, we need some further information of your requirement.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2023 01:57 PM
hi @AndersBGS so if i want the field to change before save i use UI policy with a UI policy action and if i want to change after save i use business rule right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2023 02:04 PM
Hi @yoli1 ,
yep, completely correct. UI policy is happening on the fly within the browser, where business rule is server side.
The benefit of UI policy in according to client script is, that you might not need to script at all. But again - the best solution is according to your requirement.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/