So, noits still not working
https://www.advancedcustomfields.com/resources/acf-validate_value/
only work in back office.
on front office Im not able to get the ID of the uploaded image… 🙁
and no width/height validation has been done.
my field has min_max restriction :
[“min_width”]=>
int(300)
[“min_height”]=>
int(300)
[“min_size”]=>
string(0) “”
[“max_width”]=>
int(300)
[“max_height”]=>
int(300)
and its working in back office but not in front office
Ok it seems not working in front office and acf_form with uplaoder=> ‘basic’
Same issue… when using this :
https://www.advancedcustomfields.com/resources/acf-validate_value/
$data variable =
string(36) “url=C%3A%5Cfakepath%5Cscreenshot.png”
and doesn”t works 🙁
Oh, Im getting this issue today.
I’ve an input type=”number” working on Chrome but not on Firefox 😮
EDIT : I fixed it, Its was due to custom CSS with padding for number field but height become 0px.
Nobody? How people customise their forms submissions with more details? :/
If you want to update a field, use update_field( ‘NAME_OF_FIELD’, $VALUE, $PROPERTY_ID);
documentation : https://www.advancedcustomfields.com/resources/update_field/
Currenlty, Im using updated_message and return with updated=true param
but I’ve got multiple acf_form into my page so when one of acf_form are send all updated messages are display :/
If I understand well,
when you are in the function hooked by :
add_filter('acf/save_post' , 'fn_save_post', 10, 1 );
your post and acf values are already saved, so you can get them by using :
$your_acf_field_key = get_field('your_acf_field_key', $post_id);
then, you can deal with all variables to send SMS or whatever
Im not sure but this can help me :
https://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/
Hello,
did you try to hook on :
add_filter('acf/save_post' , 'your_save_post_function', 10, 1 );
and update your field into the function ?
Hello,
I just try on Firefox 64 on MACOSX High Sierra, numeric input are working fine.
Could you copy the input html generated ?
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.