Business rule OR Client script

yoli1
Tera Contributor

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?

6 REPLIES 6

Samaksh Wani
Giga Sage
Giga Sage

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

AndersBGS
Tera Patron
Tera Patron

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/

yoli1
Tera Contributor

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?

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/