- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 11:41 PM
Hi All,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 12:32 AM - edited 10-31-2023 12:33 AM
Try below.
var wsOptions4 = 'BR,SF,GI';
var splitis=wsOptions4.split(',');
var identifer = g_form.getValue('current_shift_identifier');
for(var i=0;i<splitis.length;i++){
if (identifer.substring(0,2)==splitis[i]) {
g_form.setVisible('test',true);//true,false to show/hide
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 11:48 PM - edited 10-30-2023 11:54 PM
Hi Chandan,
You can try below
var wsOptions4 = 'BR';
var identifer = g_form.getValue('current_shift_identifier');
if (identifer.substring(0,2)==wsOptions4) {
g_form.setVisible('test',true);//true,false to show/hide
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 11:59 PM
Not Working , I am working in HRSD module (scoped application)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 12:04 AM
Strange. Can you confirm the alerts you get when using below code.
var wsOptions4 = 'BR';
var identifer = g_form.getValue('current_shift_identifier');
alert('Identifier'+identifer);
if (identifer.substring(0,2)==wsOptions4) {
alert('inside loop');
g_form.setVisible('test',true);//true,false to show/hide
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 12:08 AM
it is working if var wsOptions4 = 'BR, SF,GI', is there than who to use .
Can you guide me