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.
PHP
1
<b></b>
in podAPI.php (line 671 & 675) instead of returning an error message I return the column name to identify the column error palce holder:
PHP
1
<b>return$this->oh_snap("$key");</b>
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:
PHP
1
jQuery(".login_error").css("display","none");
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…