- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2022 11:12 AM
Hello SN community,
I'm trying to write an onChange client script based on a dot walked field (Operating System) on my form but the field does not appear in the list of selectable fields. The requirement is to have the field auto-populated based on what is in the parent record of the form so I have a script include for that. Can this be done in a client script? If yes, can someone please tell me how to get the field to show up. What I am seeing is below:
Form Field: Operating System(OS)
Missing as an option in Client Script:
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2022 11:42 AM
Hello,
You can access the dot-walked field within a UI Policy and then use the script section to then set a particular value for another field. In the condition builder, you can scroll to the bottom of the field selections and choose "Show related fields", then scroll back up to your initial field and then choose the dot-walk applicable entry indicated by => '... fields' verbiage.
From there, in the script section, you can set what would happen if true and/or false (such as calling GlideAjax, etc. it's a client scriptable field).
Additionally, if you don't want it to execute onLoad, you can uncheck the "On load" checkbox to not have it execute on load (it'll still execute on change).
Takes a bit of setup, but it can be done.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 11:48 PM
Thanks for this @James Fricker . I have a dotwalked list collector field that needs to fire a logic each time the list changes and UI policy for list collector doesnt have the condition for that. This solution works perfect for my use case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2025 06:38 AM
You can actually do that!
- Create an onChange Client script with any other field
- Open the Client script list view, filter on that client script
- Add column “Field name”
- Replace the Field name value with the dot walk field like: “table.field_name”
Note: dot walked field needs to be on the form