setValue in select box in catalog client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 08:39 PM
I have 2 region field with value as "NA" for "North America.
I am using catalog client script to fix value of first region into another and second one is read-only
But it is not updating. What wrong I'm doing?
var regions = g_form.getValue("u_region").toString();
I used g_form.setValue("u_region_1", regions );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 09:10 PM
Hi @Hafsa1
Remove toString() method.
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 09:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 09:27 PM
var value=g_form.getValue('selectboxName');
var text=g_form.getOption('selectBoxName', value).text;
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 10:29 PM
@dgarad I have to setvalue of "u_region_1" with same value as "u_region".
getOption is for getting value.