Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
UI Actions created from the Service Order Flow fail to set fields read-only, mandatory, or invisible. - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • UI Actions created from the Service Order Flow fail to set fields read-only, mandatory, or invisible.
KB0694109

UI Actions created from the Service Order Flow fail to set fields read-only, mandatory, or invisible.


1410 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Description

The Service Order Flow does not hide fields although marked as not visible, and mandatory fields do not prevent the state flow from moving forward. When we try to make a field read only with a new UI Action created on the service order flow, this will be ignored. Release record fields are not hidden and the state will move forward.

 

Steps to Reproduce

1. In the application module left navigation pane, type "service order flow".
2. Select "Service Order Flow" under the State Flow module.
3. Click on New.
4. Select any table, for example Incident.
5. Set the start state to New and the end state to In Progress.
6. Under filed control tab, select "short description" for read only fields.
7. Click Submit.
8. Click on "Create UI action".
9. Go to the Incident table list and click on "New".
10. Fill in the mandatory fields and click Submit.
11. Click on the newly created UI Action on the incident record.
Notice, as soon as the incident state is moved from "New" to "In Progress", the Short Description field is not becoming read only.

Workaround

This behaviour is by design. Field controls in state flows use client script onChange events to trigger fields read-only, thus only effective when the state changes. When a record is already in the ending state, the ready only/mandatory is not effective as the event is not triggering.
Ref.:
https://docs.servicenow.com/csh?topicname=c_FieldControlsInStateFlows.html&version=latest

 


Related Problem: PRB1297048

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.