How to skip Form_CustomValidate client in List View?

Hello there.
PHPMaker 2020.0.15 here.

I have a question concerning the Client Script Form_Customvalidate event.

In a Grid Add/Edit mode, it is useful for me to do some controls over the row fields to be updated.

The Form_Customvalidate event is adequate for this purpose.

But when in List View mode, when all the fields are protected,
I don’t want the fields to be checked.
How can I implement this?

Am I making a logical mistake?

thanks in advance
regards
jta

Form_CustomValidate will not be effective when the list page is in view mode.

I’m sorry, I forgot to mention that my example refers to a Row_CustomAction scenario.

I actually put code in Page_Load server event to display a button ($this->CustomActions[“star”] = new ListAction(“star”, “Add Star”, IsLoggedIn(), ACTION_POSTBACK, ACTION_MULTIPLE, “Add Star to selected records?”, “fas fa-star ew-icon”):wink:
and code in Row_CustomAction server event (as showed in the help file).

This causes my project to trigger the Client script Form_CustomValidate event.
(I put a simple alert on top of the Form_CustomValidate client script, and the pop-up appears right after “Add Star to selected records?” confirmation pop-up is showed.)

So I’m confused.

Can you please help?

Thank you

Then simply remove your code from Form_CustomValidate event, if you don’t want it will be run by system.