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

Hi @Roopa11 you can use the below script:

function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading || newValue == '') {
      return;
   }

  if(window == null){
        var getCountry= g_form.getDisplayValue('u_country_case');
        alert('Portal->' + getCountry);
    }
    else{
        var getCountry= g_form.getDisplayBox('u_country_case').value;  
        alert('Native->' + getCountry);
    }
   
}
 
Regards
Harish

Hi @Roopa11  also ensure isolate field on client script form has been set to false .

Regards
Harish

Anand Kumar P
Giga Patron
Giga Patron

Hi @Roopa11 ,

Make sure client script UI Type has set as ALL.

And also check any display value for that table.

 

Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand

 

AnketA
Tera Contributor

Hello All,

 

I am trying to use getDisplayBox method in my PDI but its not reflecting there 

Screenshot 2024-08-06 143946.png

AnketA
Tera Contributor

I am trying to use getDisplayBox method but its not showing in my PDIScreenshot 2024-08-06 143946.png