Beautiful! Thank you again James!
Hi @jsilver,
The validate_value hook works perfectly. I am using that for now, but I did install your plugin and I will give it a try.
The error message output is not really super user friendly using the validate_value hoop. I want to have more control over the error message output.
Thank you very much!
Hi James,
Yes I have this, however I don’t know how to return the error message to the page.
I tried setting $GLOBALS[‘acf_validation_errors’] to a string inside the if ($the_post), but it simply doesn’t work. I also tried setting it to an array with one string.
I’m using acf/validate_save_post filter. Should I use acf/validate_value
Thank you again!
Perfect. Thank you very much Sir!
HI John,
I have tried this with no luck. I failed to mention I am using a front end form created with acf_form()
Hi John,
I have an issue, I would like to grab the value of the datepicker field when the value changes and set that value in another datepicker field.
I tried doing this using the datepicker onSelect method described in the jquery ui docs and this stackoverflow question:
http://stackoverflow.com/questions/6471959/jquery-datepicker-onchange-event-help
However I have not have any luck, I think this is because of the hidden field? Can you think of a workaround?
Hello John, This is exactly right. using the acf/save_post to save variables and then the acf/load_field filters did the trick perfectly.
Thank you for your assistance.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.