Jump to content

Aeomin

Members
  • Posts

    4
  • Joined

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Entry Comments posted by Aeomin

  1. 36 minutes ago, Esther E. said:

    That's what the callback is for, specifically for validation so that it won't save. Sorry, I'm not really following what it is that you need to do that isn't already doable.

    If your code is adding the field, then you have full control over the callback that is used. There's no chain.

    ah I miss read it. I thought it was going to be along the line with listener.

  2. 4 hours ago, Esther E. said:

    Custom validation is typically declared as a callback when you add the field to the form. How are you currently doing this?

    For simple ones, using existing functionality. Some complicated ones I just use hook. The goal for validation is not saving data if it didn't pass. So callback isn't ideal as it is not some kind event chain I can break.

×
×
  • Create New...