We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to Auto‑Set Value to 1 When Operator is “Greater Than or Equal To” in NOW Condition Builder?

piyush_garg
Tera Contributor

Hi everyone,

I’m working with the NOW Experience Condition Builder inside the Filter Spaces modal in Workplace Scenario Planning. The Condition Builder is configured for the table sn_wsd_core_space and automatically provides numeric operators based on the field type (e.g., “Greater than”, “Less than”, “Greater than or equal to”, etc.).

What I'm trying to achieve

When the user selects the numeric operator:

Greater than or equal to

…I want the value field to automatically default to 1 instead of allowing the user to leave it blank or enter 0.

What I want to implement

Whenever the Condition Builder sends an encoded query:

  • Detect when the operator is >=
  • If the RHS value is 0 or blank
  • Automatically rewrite it to 1
    Any guidance from experts who’ve worked with NOW Experience UI Builder and the Condition Builder would be greatly appreciated!

    Thanks!

0 REPLIES 0