Looking forward to your guidance on this one, I couldn’t find anything on it in any of the help forums. Thanks!
]]>I would love to be able to parse this to just say “Veterinarian”.. Is this possible with GF?
]]>(a) Existing posts created with Avada Theme Builder. Here, everything (layout and content) is stored in the same post and can only be changed manually per post;
b) Existing posts created via a custom backend. The individual fields are output via a global layout from the ATB.
c) New posts, which are created via the own backend.
If I now try to filter out the corresponding data and fill in the fields in the backend, this only works partially.
This is now an example code, which I use for different fields:
// Import data for field "Domainname"
function load_domainname($value, $post_id, $field) {
if (get_field('new_backend', $post_id) != 1 && get_post_status($post_id) == 'publish') {
if (get_field('domain', $post_id)) {
return get_field('domain', $post_id);
} else {
return get_the_title();
}
}
}
add_filter('acf/load_value/name=domainname', 'load_domainname', 10, 3);
If I have scenario A and want to edit A, the fields are filled in correctly.
If I have scenario C, then no fields are filled in – which is also correct, since nothing is available.
But if I have scenario B, then the corresponding field is emptied. The existing entry is then no longer present.
All attempts to query beforehand whether the field to be filled in already has a value end in a fatal error.
Example:
// Import data for field "Domainname"
function load_domainname($value, $post_id, $field) {
$domain = get_field('domainname', $post_id);
if ($domain == '') {
if (get_field('new_backend', $post_id) != 1 && get_post_status($post_id) == 'publish') {
if (get_field('domain', $post_id)) {
return get_field('domain', $post_id);
} else {
return get_the_title();
}
}
}
}
add_filter('acf/load_value/name=domainname', 'load_domainname', 10, 3);
Does anyone have a solution for this problem?
]]>How do I autopopulate the fields for Name and email at Woocommerce Checkout?
Thanks.
Regards.
]]>Is there a way that I can access UM User first name, last name and email metadata to autopopulate WPForms (or any form)?
Thanks!
Best
]]>How can I autopopulate an Appointment Hour Booking form using already entered user data?
I appreciate any suggestions.
Regards.
]]>I feel like a simple code snippet would solve this issue but I don’t know enough to figure it out on my own.
]]>Is it possible in the plugin?
Thanks,
]]>Im looking for the way to autopopulate the register form.
We got an special social login and we want to pass all these information to the register form.
Im looking into the hooks list
Im not sure if um_pre_args_setup will work… and if it will, how to pass the arguments…
Any idea to start the research?
Thanks
]]>