Some times attachement asking some time without attachment the form submited
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 11:21 AM
Hi All,
when we check the script which have written it's working some time as expected, but some times not Please let us know. As per my understanding script is correct.
For same conditions some times attachment is asking sometimes not.
Please let us know why this happen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 12:19 PM
Hi @Sirri ,
Sometimes, its good to share the technical aspect of question/query with screenshot/code. Please share that script here, so we/or/other friends can help to find the root cause.
-Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 09:45 PM - edited 11-22-2023 09:46 PM
Hi @AshishKM ,
Sure I can share all the requirement and script.
In catalog item we have variable set :
1)Requested for(requested_for) - Reference(sys_user)
2)Approval Required(approval_required) -check box
some variables :
1)Select Application from the list(select_application_from_the_list) - Reference(cmdb_ci_business_app)
2)Note: Please attach email approval from the relevant person (email_approval)-custom
Please Note : In user table one field is there
1) Grade(u_grade) - String
If requested for grade is Any of these("Assistant Director", "Director", "Investment Manager", "Vice President", "Partner", "Managing Director", "Managing Partner", "Family Partner)
then Attachment not required.
If requested for grade is other then above then attachment is mandatory.
Note: This is for understanding:
suppose(example)requested for grade is Contractor then attachment is Mandatory.
IF I "Select Application from the list "
Note: If Application or below five:
Exclude if =
1)Microsoft Dynamics 365 Outlook Addin
2)GoaOcx
3)azuredevops_AddInExcel
4)Equitrac Workstation Client(Hong Kong)
5)Equitrac Workstation Client(Shanghai)
Attachment is not required(not Mandatory)
If application name is other than above based on "Requested for" Attachment is mandatory.
please help me regarding this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 04:48 AM
Thanks for sharing the details along with screen shot(s) , seems like onSubmit client script is checking only “approval_required” value.
query -> how you are setting the approval required checkbox for Requested For and On Application Selection .. I believe it’s through via code and at end ( before submit ) the attachment check logic checked the “approval_required” status.
Grade ( u_grade ) -> as you mention this filed in User[sys_user] table , Is this on catalog form also filled via code.
Can you share over call with screen share.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 05:48 AM
Hi @AshishKM ,
I'm also still confussing how the approval_required is working as exactly when we kept the condition as true in the attachment.
Please let us know where that backend code running. Please let us know In which table or written that code in backend.
Please let us knows how can we connect for call here.
Thank you