Newbie: can't get a simple UI policy action to work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2025 10:08 AM
Hi all.
I'm a total newbie to working with ServiceNow, lengthy background in coding. This is a no code question.
I am taking a developer course with Now Learning, and in the current lab (4.2a), I was to build a form in studio, add a choice box with a number of choices, the last choice being "Other". Then I was to add a string field below it named Other/other.
I should add that the instance asked me if I would like to use the newer tool, but the lab said to stick with the older one, so I did. I can't think of the names of the two tools at the moment.
You probably know where this is going.
Next I add a UI Policy, make it active, global, an run on load (and not Inherit).
The table for the policy is the only table in the app.
The condition was Depot (the choice field) is Other.
I did all of this and saved the UI policy.
Next was to set up the UI policy action, namely when the person elects Other from the choice list, the Other box will become a visible and mandatory field.
I created the new policy action, I set the field to Other, made it Mandatory True and Visible True. Then I hit Submit.
That was all of the instruction.
Next step is test.
I try to make a new record for my app.
The default choice is set to Other and since the UI Policy was set to on Load, I assume that means it would pop out the Other field upon load, but it didn't. I tried changing the value in the choice list to different values and back to other, but nothing happens. The Other field never appears no matter what, and no errors or odd behavior. Just no reaction at all. Since the course and labs are progressive, I think I should stop moving forward until this gets resolved.
I Googled for answers, but the suggested remedies were not spelled out in my level of ServiceNow familiarity.
I deleted the Other field and the Policy and the Policy action, and I repeated the lab from the start (the table and form were created in prior labs). All of my screens look exactly like the screens in the textbook.
It's a fairly short lab and I'm content to try it multiple times, but I would sure like to know what the problem could be with a new app, no scripting so far, and just one table and a form.
All ideas, thoughts, and recommendations are welcome.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Hi! As a new learner, im trying to figure out why the UI Policie dosent work? I simplified and only one field should be greyed out if the state is closed. I have tried to reload etc. .. Probably its something simple. Thanks