Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  claudiodegio 2 months, 1 week ago.

  • Author
    Posts
  • #9311

    claudiodegio
    Participant

    Hi,

    I need to create a custom form in admin page with complex field layout,
    and save data on custom table.

    How a can add a custom action after user submit/save operation ?

    regs

  • #9313

    Steve
    Keymaster

    You can use the piklist_save_field or piklist_save_field-{$scope} action. They both fire after a form has been saved.

    https://github.com/piklist/piklist/blob/develop/includes/class-piklist-form.php#L3801-L3819

  • #9316

    claudiodegio
    Participant

    Thank you steve.

    It’s possibile to return an error on piklist_save_field action? for example a form validation error.
    I see after save there is a notification text “Post Saved”, it’can be used to dispay applciation error ?

    I need also to preload data in form, how a can do that ?

You must be logged in to reply to this topic.