Make the reference variable show no data unless another variable is populated.

Patrick Cavanau
Tera Contributor

Hello, 

I have a requirement to make it so only the servers related to the selected SID on a catalog item are showing. I can do this an have added the code below, but the requester would like it so that if no SID is selected, the field shows blank. I have added the reference qualifier that I have now but need to adjust it so it shows no data if it does not match this. Does anyone know if this is possible?

 

Thank you!

PatrickCavanau_0-1718622831209.png

 

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Why dont you make it read only unless SID is selected, and once user selects SID, the other field becomes editable , and maybe mandatory too.

-Anurag

swathisarang98
Giga Sage
Giga Sage

Hi @Patrick Cavanau ,

 

You can call a script include and inside si function you can add if else, in IF you can check whether the dependent field is selected if selected return your query in else return null.

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang