How to validate mandatory fields before autosave while creating incidents from interaction

Sandhya V
Tera Contributor

Hi all,

 

I have a requirement -When creating the Incident from interaction via UI Action "Create Incident" in agent Workspace, we need to validate whether mandatory fields are filled or not. If mandatory field is  filled, then only autosave. otherwise it shouldn't autosave unless Mandatory fields are filled. 

Note:  I want the property 'com.snc.incident.create_from_interaction.save' to be set to true. 

 

How this can be achieved?

 

1 ACCEPTED SOLUTION

Sid_Takali
Kilo Patron
Kilo Patron

Hi @Sandhya V you can make a "com.snc.incident.create_from_interaction.save" as false, as it will not save a Incident record without manually saving it. When you save a Incident in Workspace using Save Button it will automatically highlight the Mandatory field if these are empty. It will not save until all mandatory field having some value. Please mark this as Helpful/Correct

Regards,

Siddharam

View solution in original post

3 REPLIES 3

Sid_Takali
Kilo Patron
Kilo Patron

Hi @Sandhya V  is create Incident UI Action is custom created? The "Create Incident" Ui Action will automatically Validate the mandatory field on Interaction form. It will create Incident only when all the Mandatory field are filled and interaction form is saved. 

@Sid_TakaliThanks for the response. Above requirement was on Incident form after clicking on 'Create Incident' button.

when we set the system property "com.snc.incident.create_from_interaction.save" as true, irrespective of mandatory field is filled or not on Incident form, even before clicking on the 'save' button, the incident record gets created. 
So, before it autosaves the incident record, we want to validate the mandatory fields on Incident form.

Sid_Takali
Kilo Patron
Kilo Patron

Hi @Sandhya V you can make a "com.snc.incident.create_from_interaction.save" as false, as it will not save a Incident record without manually saving it. When you save a Incident in Workspace using Save Button it will automatically highlight the Mandatory field if these are empty. It will not save until all mandatory field having some value. Please mark this as Helpful/Correct

Regards,

Siddharam