- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
We are currently facing an issue where duplicate options are being displayed in a dropdown/select field, even though the values are being set through a combination of Script Include and Client Script from a specific table. The expectation is that once an option is selected or populated via script, it should not appear again as a duplicate in the list.
client script:
please help me
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
The main issue is here because of setting the displayValue instead of the record sys_id. Updated the while loop below, try this:
while (relGR.next()) {
var recordSysID = relGR.child.getValue('sys_id');
gs.info("Nikhitha" + displayValue + " " + recordSysID);
results.push(recordSysID);
}
After testing you can remove the comments and can directly push the value into results array.
Also, remember whenever you're inserting the values into list_collector via script you need to make sure to set bothe the value (sys_id) and display value of the record. Refer below screenshot:
Hope this resolves your issue
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
please refer the above screenshot of issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
The main issue is here because of setting the displayValue instead of the record sys_id. Updated the while loop below, try this:
while (relGR.next()) {
var recordSysID = relGR.child.getValue('sys_id');
gs.info("Nikhitha" + displayValue + " " + recordSysID);
results.push(recordSysID);
}
After testing you can remove the comments and can directly push the value into results array.
Also, remember whenever you're inserting the values into list_collector via script you need to make sure to set bothe the value (sys_id) and display value of the record. Refer below screenshot:
Hope this resolves your issue
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Thanks for you help, Its working now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
its working but only it returns single if the value has two values to populate its not working i want to populate two values if the two values was there. please help me with this