Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Condition Builder as variable in catalog item

Prabjoth Saimbh
Mega Expert

Hi... I hope somebody can help.

I need to ability for a user to submit a request via the catalog with answers to some questions being the condition builder output. How can I transfer this from the request to the catalog item RITM when the cart is submitted?

e.g.

I have a request to allow key users to submit requests for new SLAs. For the conditions I would like to use the condition builder to produce the "and/or" conditions for START, PAUSE, COMPLETE etc conditions.

Has anyone done something similar?

Thanks,

Prabz

6 REPLIES 6

Chuck Tomasi
Tera Patron

Hi Prabjoth,



I think I have an answer for you, but could use a bit more information. Can you include some screenshots? Where are you using the condition builder? Is it producing the encoded query string you desire? (e.g. state=5^active=true^priority=1 - for example)? Screenshots would be appreciated in this scenario. Thanks.


Hey ctomasi,



i have the same question:



What i have done is:



Created a ui page that calls my condition builder field


<g:ui_element table="XXXXX" field="XXXXXX" id="XXXXXX"></g:ui_element>



This page works absolutely fine when i hit 'Try it' on the ui page. But i created a variable of type 'UI Page' and included it in my catalog and i get an error there



find_real_file.png


-Anurag

Hi Anurag,

Thanks for bringing up this discussion.

Were you able to get through in defining the 'Condition Builder' as a variable on a catalog form?

It would be great if you could please let us know how you were able to crack it.

 

Thanks in Advance.

Surendar M

 

saileedali
Giga Contributor

Do we have any solution for this yet?

 

I have the same requirement to add condition builder as a catalog variable. Can someone please suggest any alternative if possible?