- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2024 06:47 AM
Hi experts,
we have a requirement, when selected user is a manger in user table, then only we need to display a variable 'should current team'.
For this I have written script include (client callable) and client script ( onchange) but some how field is not getting displayed.
PFB the code snippets and guide me where I went wrong.
Script Include:
Client Script:
Note: when ever I select a user who is manager or not, alert in the line 19 pops up.
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2024 07:37 AM
Okm i see it, in your client script you are using
sysparam_name and sysparam_emp
while it should be
sysparm_name and sysparm_emp
Correct the first like in your script include too where you are reading sysparm_emp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2024 06:55 AM
Hi @si21
change the below code in the client script.
if (answer =='true') {
alert('user is a manager');
g_form.setDisplay('should_current_team', true);
} else {
alert('user is not a manager');
g_form.setDisplay('should_current_team', false);
}
Thanks
dgarad