UI Builder - Use optional parameter in page variant conditions encoded query

Jonas VK
Tera Guru

Hi all,

I am running into an issue. I am trying to show the correct variant of a page in case the standard one isn't required.
Likewise, I was trying to check the value of the optional parameter in the conditions' field of the page variants, but this doesn't seem to work the same as a required parameter.
Does anybody know how I could use the optional parameters inside the encoded query?

Regards,
Jonas

1 ACCEPTED SOLUTION

JagjeetSingh
Kilo Sage
Kilo Sage

For some reason, we can not use optional parameters in our variant condition in UI Builder. 😞

 

JagjeetSingh3_0-1677326585338.png

 

 

 

Jagjeet Singh
ServiceNow Community Rising Star 2022/2023

View solution in original post

3 REPLIES 3

JagjeetSingh
Kilo Sage
Kilo Sage

For some reason, we can not use optional parameters in our variant condition in UI Builder. 😞

 

JagjeetSingh3_0-1677326585338.png

 

 

 

Jagjeet Singh
ServiceNow Community Rising Star 2022/2023

I hadn't seen that part. Well that gives a problem in our project

Community Alums
Not applicable

Hi Jagjeet,

 

I have similar requirement, where I need a variant condition based one of the field value.

 

Can we add that field in required parameters and use it, I tried but couldn’t succeed.

 

any assistance will be great help.

 

thanks