Make an order guide variable "ReadOnly" on "choose options" tab

Dacki
Tera Expert

Hi,

I have a field "Beneficiary" on an order guide .   This field is populated   on the order guide form.

I wrote a catalog client script to make it readonly   on the first tab .

When   I go back   by clicking   on     " describe needs" button, I want     the beneficaiary field can be editable.

My catalog client script is :

function onLoad() {

        if (g_form.getParameter('sysparm_active')!='') {

      // this stuff only runs if catalog item is viewed in Order Guide

      g_form.setReadOnly('Myvariable',true);

  }

 

}

So   I want   that when I am on "describe needs"   tab   the   "beneficiary" field to be readonly   but   not   on "choose options"   tab.

Thanks you in advance for you help !

Arnaud

6 REPLIES 6

mdeepu433
Tera Contributor

hi arouna,


have you get the answer for this, please share your thoughts for this if you got this,


thanks.


SKum
Kilo Sage

Looking for same have you got this worked?