Skip to main content

I understand that set errors are not supported inside edit block but I have a complex validation for one of the fields inside edit block block which I need to validate. If the field is inputted and when I click on Save, I need the validation to prevent user from saving it.

 

So here’s a hack I’m trying to implement:

- I utilised custom actions which calls an IP inside an edit block and does some validation on the field and returns a Boolean.

- Based on the Boolean, I have a text block which displays the error message if the field is not valid.

 

But the issue here is that the text block shows the message only after the save button is clicked and is just a message and doesn’t prevent users from saving it. However, I wanted the edit block to error out or throw validation when you save the edit block.

 

Is there any other way I could do this or am I missing anything?

 

@Salesforce OmniStudio Developer @Nick Maio @Dipankar Sahoo any thoughts?

4 risposte
0/9000