- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 09:57 AM
Hi Team, could you please assist here:
If the 'requested for' and 'site owner' variable's values don't match, then display a mandatory upload button with 'xyz' text?
here both the variables refers to user table.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2024 01:46 AM
Hi @Bindhu1 ,
Before submitting the catalog item request will not be created so what you can do is You can compare with logged in user and site owner because Request table Request for hold the logged in user value,
I have changed the client script please have a look,
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
g_form.setDisplay('attachment',false);
return;
}
var requestedFor = g_user.userID;
// alert('Requested for' + requestedFor);
// alert('new Value'+ newValue);
if(requestedFor != newValue){
g_form.setDisplay('attachment',true);
g_form.setMandatory('attachment',true);
}
else{
g_form.setMandatory('attachment',false);
g_form.setDisplay('attachment',false);
}
//Type appropriate comment here, and begin script below
}
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
05-09-2024 02:35 AM
Hello,
Yes , I want to show the attachment variable on catalog item form and there is no requested for variable in catalog.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2024 02:38 AM
If there is no requested for variable then with what do you want to compare the site owner field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2024 02:54 AM
Hi @SumanthDosapati ,
Kindly look at this image, here 'requested for' field which is editable and it is coming from widget not from item variable.
And those are the cat item variables marked in blue.