Hiding "Order Now" button when specific a specific system is chosen from reference field

AbooK
Tera Contributor

So I have a catalog item, and there i have a reference field for choosing a system on the form,

and for example when system a or system b is chosen, then I want the "Ordner Now", button to be hidden, but with every other system chosen, then it needs to be shown again. Can this be done without scripting?

 

I have tried to add this into my form with the code:

 

g_form.setDisplay('no_order_now', false);

} else {

g_form.setDisplay('no_order_now', true);

 

this is not the full code in the catalog client script, but its not working anyways.

0 REPLIES 0