g_form.getDisplayBox(' variable ').value not working in EC portal
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2024 01:49 AM
Hi team ,
g_form.getDisplayBox(' variable ').value not working in EC portal
any one knows solution plz help
Thanks
Roopa
9 REPLIES 9

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2024 02:02 AM
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
Harish
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2024 02:05 AM
But
Tried already but getDisplayValue not working in old portal

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2024 02:06 AM
Hi @Roopa11 Can you share your script and the requirement?
Regards
Harish
Harish
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2024 02:09 AM
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 ');