• Resolved henrim01

    (@henrim01)


    Hi AutomatorWP,

    I’ve extended the user meta of the WordPress user type with ACF. I’ve created an extra field group “Extra user info” with one field “test”. This is a True / False field. I want users to be able to set these fields themselves through a Fluent Form on the frontend. Is this possible with the WordPress action: ‘Set, insert, increment or decrement user meta’? I tried it, but it didn’t add anything to the wp-usermeta table. Please advice.

    Kind regards, Henri

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ruben Garcia

    (@rubengc)

    Hi @henrim01

    Yes, is completely possible

    First, from the Fluent Forms integration you can use the tags feature to pass any field value entered to the actions you want, there is a document explaining the tags:
    https://automatorwp.com/docs/getting-started/tags/

    And from the action, the unique you need is to correctly pass the meta key to be sure you are updating the correct meta to your users

    Hope it helps

    Thread Starter henrim01

    (@henrim01)

    Hi @rubengc

    Thanks for the quick reply. Happy to hear that it is possible to fill out created ACF fields for a user profile. Unfortunately I couldn’t get it to work. I looked at your article and I think I’m doing it right, but nothing happens. To illustrate what I’ve done to test it, I created a recording. Could you point me in the right direction what I’m doing wrong?

    Recording using AutomatorWP to fill out user_meta and users fields

    Help would be greatly appreciated ??

    Plugin Author Ruben Garcia

    (@rubengc)

    Hi @henrim01

    The issue is that on meta keys you are placing tags instead of the meta key name

    Tags are replaced by a dynamic value, for example, the user meta “happy” has the value “yes”, the tag “{user_meta:happy}” will be replaced by “yes”

    So in your automation you are saying: Set the value X to the meta key “yes”

    In your automation, you need to replace the meta key options:
    “{user_meta:happy}” by “happy”
    “{user_meta:description}” by “description”
    “{last_name}” by “last_name”

    Hope it helps

    Thread Starter henrim01

    (@henrim01)

    Hi @rubengc

    Thanks for the tip. I changed the meta keys and now they work. However, am I doing something wrong still with the meta values based on the Fluent Forms names? It doesn’t pass anything. When I put a value directly it does, but by using the following codes: {1:form_field:test} for happy and the {1:form_field:email} for description, those fields keep empty.

    Plugin Author Ruben Garcia

    (@rubengc)

    Hi @henrim01

    For the form tags, be always sure about 2 things:

    1) Add the tag from the dropdown, since the first number, refers to the trigger ID and it changes if you have removed a trigger

    For example, for the tag {1:form_field:FIELD_NAME} if you have placed manually the tag, is possible that the trigger ID is not “1”, so the easiest way is choose the tag from the tags dropdown to get the correct trigger ID

    2) For Fluent Forms tags, be sure to place the correct field name

    A way you can check this is, after complete a trigger of Fluent Forms, AutomatorWP stores a log entry, on this entry, you are able to see the form fields and values received

    Hope it helps

    Thread Starter henrim01

    (@henrim01)

    Hi @rubengc

    I just checked the log and it is empty.

    However, I did use the tag dropdown. Here are the screenshots of all settings that I’m using for the setup:

    So why does it show up empty in the log of the trigger?

    Plugin Author Ruben Garcia

    (@rubengc)

    Hi @henrim01

    You are completely right

    We just released a new update fixing this issue, now the fields submitted should get correctly detected

    Thank you so much for your report and for help make AutomatorWP much better!

    Best regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Update user ACF field’ is closed to new replies.