Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Calculated field not updating in real time

ADITYA1312
Tera Contributor

I have created a form there are three fields

1. Field A : Integer

2. Field B : Integer

3. Result : Integer is a calculated field whose value is sum field A and B

I have a UI poilicy for applied that if value of result is greater than 1000 than hide result field but it hides only after saving the record

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@ADITYA1312 

UI policies evaluate on form load, not real-time during onChange edit for calculated fields like your Result

you can use onChange client script on Field A and Field B to re-calculate the Result and apply the show/hide logic.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron

@ADITYA1312 

UI policies evaluate on form load, not real-time during onChange edit for calculated fields like your Result

you can use onChange client script on Field A and Field B to re-calculate the Result and apply the show/hide logic.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader