and more in a single search tool across platforms. Read the announcement here. |
06/26/2023 08:15 AM
Hi Team,
When we try to create user via Create User Request tile, there is a option for Attachment of files at the bottom. We need to make the attachment as mandatory when user is created. However, the mandatory attachment is showing up for all the requests such as Role Request, Application account request etc.
Thanks and Regards,
Hitesh Sapkota
Solved! Go to Solution.
06/27/2023 05:11 AM
If Global Configuration > Requests > Settings > Add Attachment Mandatory is enabled all the pages will be enabled for attachements.
07/03/2023 11:54 PM
Hi RakeshMG,
Turning Add attachment Mandatory will enable this for all types of request. But our requirement is to make attachment mandatory only for Create User Request.
Regards,
Hitesh Sapkota
07/04/2023 07:48 AM
Implement workaround ask user if attachment attached as acknowledgment checkbox
07/04/2023 03:41 AM
This config is Global change and currently your requirement is not available.
Please raise an enhancement request in Idea portal. https://ideas.saviynt.com/ideas
07/07/2023 07:30 AM
Hi @RakeshMG and @rushikeshvartak ,
I am able to show attachment as mandatory only for Create User Request. Please follow the below steps:
1. Go to Global Configuration > Requests > Settings > Add Attachment Mandatory. Make sure Add attachment Mandatory is unchecked.
2. Now, Go to Admin > Settings > File Directory > Views and Edit
workflowmanagement/createupdateuserrequestfirststep.gsp |
3. In the .gsp file, go to the attachmentblock div section and replace below section
${(reqAttachment != null && reqAttachment == '1' && userkey == null) ? "*" : ""}
with
${(iscreatecase == 'Y' && userkey == null) ? "*" : ""}
4. Now, go to opennextpage(formname) function and replace below code
<g:if test="${userkey==null && reqAttachment != null && reqAttachment == '1'}">
with
<g:if test="${userkey==null && iscreatecase == 'Y'}">
5. This piece of code will validate if you are attaching any file or not while creating request.
6. Save the GSP file, Upload it and then restart your system.
Regards,
Hitesh Sapkota