Post

7 followers Follow
3
Avatar

Validate custom action input

Hi,

 

We would like to have a new action type to validate user input in a custom action. So, for instance, let's say I put a numeric value in the custom action form and I want it to be between 1 and 10. Right now there's no easy way of validating that the value is right, I would have to:

 

  1. Put a conditional action list for the wrong value possibility.
  2. Put a message in this conditional action list so the user gets alerted. This closes the input form without a chance to fix the value.
  3. Put a conditional action list for the right value possibility.
  4. Put all the logic and a success message at the end in the form of a "Notify" action. Using the regular "Success Message" would not work because it would be displayed in case of error or success.

As you can imagine, when you have to validate more than one field, you have a complete mess in the structure of the custom action. And if you want to invoke another custom action via URL at the end, this workaround is not even possible.

 

This could be solved very easily with an new action/step that, having a True/False expression similar to the ones in the Validation Rules, fails the custom action and stops the execution if needed. It could show a red message in the custom action form, same as you the one you have when a validation rule or any other thing fails during the execution of a custom action. That way the user can correct the input data and run again.

 

Regards.

Fernando Borrego Polo Not planned

Please sign in to leave a comment.

7 comments

1
Avatar

Fernando, 

Thank you for submitting this requests. Your change request was logged. ID: CR-231762.

 

Sincerely, 

Boris

Boris Krutiy 1 vote
Comment actions Permalink
0
Avatar

HI Boris, 

I know I'm a bit late to the party, but has this Change Request been deployed ? I could use it right now !

Thanks, 

Amir

Amir Hamza 0 votes
Comment actions Permalink
0
Avatar

Hi Amir,

This has not been implemented yet AFAIK.

Regards.

Fernando Borrego Polo 0 votes
Comment actions Permalink
0
Avatar

I fully support this request.  Validation at input time is critical.

Jason Ray 0 votes
Comment actions Permalink
0
Avatar

Hi Jason and Ariel,

We have added you to the feature request list. 

Tom Do 0 votes
Comment actions Permalink
0
Avatar

Any update on this feature request? From what I've seen, CAs can only use variables for output change rather than create validation rules around input data. 

Also, can at any point formula based custom fields be updated in a CA? No, correct?

Matt Bures 0 votes
Comment actions Permalink