Black Friday Sale is now Live

Pre-Save Validation Hook for Repeater Field in Profile Listing Type

  • Solved
  • Posted 2 weeks ago

Hi,

In my Profile Listing Type, I have a Repeater field (work_experience) that contains two date fields: work_exp_start_date and work_exp_end_date.

Problem: I need to implement custom validation to block the form submission on the frontend if the End Date is antecedent (before) the Start Date in any of the repeater rows.

Request: What is the exact and guaranteed hook (Action or Filter) I must use to intercept the Profile Module save operation and force the block by throwing a \Exception?

Thanks!