Made all mandatory fields not required on click of OOTB "cancel change" ui action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2024 09:55 AM
Made all mandatory fields not required on click of OOTB "cancel change" ui action but on cancel of the dialog the fields are left not mandatory.
The fields should be back to mandatory or reload the form(which will make the form as previous).
ui action:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2024 10:00 AM
Just to be clear...are you wanting your fulfillers/technicians to populate mandatory fields before the cancel UI action will commit the cancel action and make the ticket inactive?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2024 06:24 AM - edited ‎02-13-2024 06:24 AM
Don't want anyone to update the mandatory fields, just want to bypass any validation on mandatory fields on the form while canceling the CR.
for that purpose , i have added the below code to ootb 'cancel change' ui action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2024 07:50 AM
Makes sense, you probably just have to embed your code in the right spot. Try putting it in the "setChangeCancelState" function:
---------------------------------------
...however, know that when I'm testing on my PDI, it seems like the OOB action doesn't require mandatory fields, when you use the Cancel Change UI Action...it will "complain" (throw an "error message") about the mandatory field(s)...but it still sets the state to Cancelled (4) and saves the record as active=false.