Error Handling Sugesstion

This topic is: not resolved

This topic contains 1 reply, has 1 voice, and was last updated by  elradts 9 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #168129

    elradts
    Member

    For each column in a pod add an Input helper that includes a copy of the default column code and a hidden placeholder for the column error.
    This should be integrated by default into pods cms infrastructure when creating the html column code.


    in podAPI.php (line 671 & 675) instead of returning an error message I return the column name to identify the column error palce holder:

    In pods.ui.js I catch the error under is_error function, display the place holder and alter the error message:

    In input_form.php (line 58) under the save_form function I hide all errors if btn_save is clicked:

    The result is a error easily styled, positioned, incorporated with an error icon via CSS, and a dynamic message inserted via a pre-save input.
    Hope you like it…

    #168131

    elradts
    Member

    was not able to present the html error place holder >> it is a simple span under the input tag

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Wordpress Cloud Hosting