System properties not working in onLoad client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 05:44 AM
Hi Team,
I need to show some dropdown on the basis of user country that's why I need to use system properties instead on sys_id of HR service.
System properties:
39efd036971111d02698fe7fe153af3c,ff93c2251ba1111046248553604bcb8e,ee1edd771be91550be7f32e2cd4bcb41,f880e836971111d02698fe7fe153af05,ea178f3f1b2d5550be7f32e2cd4bcbf8,79f9e0a01bfa3c9895e6a6c7b04bcb6b,9601bbc81b7de95055c8dd39cd4bcb94,ec6c64bf87617dd0b2a8cae50cbb3527 this are HR service Sys_id which I have pass in value of one of the system properties.
Created Display BR-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 06:05 AM
Hi @rmaroti ,
In else if the sytax of removeoption is wrong, you have to add the
g_form.removeOption('fieldname', 'choicename');
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 07:03 AM
HI, per my analysis of your code,
1. how come the if and elseif has same condition "hrservice.indexOf(currentHRService) > -1"
2. you may try declare hrservice = [];