- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-29-2024 12:59 AM - edited ā08-29-2024 01:51 AM
Hi!
I have a select box where I have choice1,choice2,choice3,choice4,choice5. If the requested for user is belongs to company record field 'u_field_name1'==true or 'u_field_name2'==true then I need to show all five options else I need only first two options. For this I have created a client callable script and created a on change catalog client script. But some how this is not working.
Can some one explain me how can I achieve this and what am I doing wrong. Posting my code here
ScriptInclude:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-29-2024 03:50 AM
Found what is wrong. I have added a role ACL which is not allowing other users to run the script. So added
isPublic:function(){return true;},
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-29-2024 01:42 AM
@Ankur Bawiskar Any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-29-2024 03:12 AM
Hi @jitendrag
Can you please let me know what you are trying to check with this line of code userGR.company.field_name1==true ? Do you have field_name1 as custom field on company table ?
If yes, you need to pass it as userGR.company.u_field_name1==true and userGR.company.u_field_name2==true as these are user-defined fields.
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-29-2024 03:19 AM
Hi,
I am using the u_field_name1 == true only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-29-2024 03:24 AM
Is it a custom field ? Also, as per the code provided by you, you are not using it as u_field_name1. See below :
if(userGR.next()){
if(userGR.company.field_name1==true || userGR.company.field_name2 == true) // You are directly calling field_name1 field instead of u_field_name1
{
return true;
}
Please mark this response as correct and helpful if it assisted you with your question.