Set Field values in Flow Designer - Boolean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2022 12:53 AM
Hi,
I am need of setting a field value in flow designer which is of boolean type:
The field when unchecked in flow designer is also setting the value to True.
Tried with Scripting, but still the value seems to be set to True
Please let me know any suggestions to set the value. Thanks in advance
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2022 01:02 AM
Hi,
are you sure no other script is setting the value to true?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 12:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 12:47 AM
Hi,
Glad to confirm what I said above that some script is setting it from script and you found it.
it is setting true based on some field conditions.
Please ensure both the flow and BR conditions are in sync while setting or else you will face this issue i.e. Flow sets as false but script sets as true
Please discuss with your customer about this.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2022 01:40 AM
Hi Gokul,
Write an onLoad script.
function onLoad() {
//Type appropriate comment here, and begin script below
g_form.setValue('needs_attention', false);
}
Regards
Yogesh