Increase integer field by 1 when priority changes

Teresa Ruiz
Tera Contributor

Hi guys,

I made an integer field in my incident form and default value 0 and I need to increment this field by 1 everytime the priority changes.

I tried this with business rule but i cant seem to find the right way.

 

g_form.setValue('u_priority_counter', g_form.getValue('u_priority_counter') + 1);

 

Thanks to any help 🙂

6 REPLIES 6

Ankur Bawiskar
Tera Patron

Hi Teresa,

Any update on this?
Can you mark answer as ✅ correct, 👍 helpful if you were able to achieve the requirement. This enables other members to learn from this thread.

Regards
Ankur

Ankur Bawiskar
Tera Patron

Hi Teresa,

Any update on this?
Can you mark answer as ✅ correct, 👍 helpful if you were able to achieve the requirement. This enables other members to learn from this thread.

Regards
Ankur