cancel
Showing results for 
Search instead for 
Did you mean: 

Validation during Create - Similar to Side effects

Karan_Chopra_
Active Participant
0 Kudos

Hello Experts.

Is there a way we can invoke Side Effects like instant validation on key fields which are to be filled during press of CREATE button?

For example I can perform a check on field in Precheck event but it gets invoked only when I press continue and in the form of validation message.

My requirement is to instantly display validation state message for particular field once the invalid value is entered, just as we get state error of field in draft mode using side effects.

I tried using side effects but it does not get invoked here, I suppose, because they are used for Draft enabled app and invoked in Transactional buffer, at this point during Create the transactional buffer is not yet reached.   Also I see standard behaviour of field format validation automatically works based on field type. 

Karan_Chopra__0-1714640235870.png

Required something like this (This is standard behaviour)  

Karan_Chopra__1-1714640599652.png

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Srikanth_1
Newcomer
0 Kudos

I think this should work.

draft determine action Prepare
{ 
  validation <validation_name_1>;
  validation <validation_name_2>;
}

 

Karan_Chopra_
Active Participant
0 Kudos
This will not work as I need to invoke error during initial creat pop up when transactional buffer is not even triggered