g_form.getDisplayBox(' variable ').value not working in EC portal

Roopa11
Tera Expert

Hi team ,

g_form.getDisplayBox(' variable ').value not working in EC portal 

 

any one knows solution plz help

 

Thanks

Roopa

 

9 REPLIES 9

Harish KM
Kilo Patron
Kilo Patron

Hi @Roopa11 getDisplayBox() method will not work in Portal. To get the display value use g_form.getDisplayvalue('fieldname');

example:

g_form.getDisplayValue('service_offering');

 

Regards
Harish

Roopa11
Tera Expert

But 

Tried already but getDisplayValue not working in old portal 

 

Hi @Roopa11 Can you share your script and the requirement?

Regards
Harish

Roopa11
Tera Expert
For certain values i need to show pop up in catalog form, pasting partial code for ref
 
var a = g_form.getDisplayValue('u_country_case');
       if (a == 'China')  {
        alert(' Expense Reporting Help ');