• Resolved sslv

    (@sslv)


    I’m using the UsersWP plugin which allows me to create a Register, Login, Logout, Profile, Edit Account and more. However UsersWP doesn’t allow Conditional Logic.

    So my question is, can I create a form with Forminator, and associate each submission with the corresponding user?

    For example, user1111 is currently logged in and is filling a Forminator Form. This form includes phone number and country. When the form is submitted, the form automatically reloads to blank. However what I want to achieve is the following scenarios:

    • In Edit Account users should be able to submit a form but the data of the form should remain there after submission
    • In user1111’s View Profile, only data submitted by that user should be displayed
    • Is the above possible, and if so how can I do those?

      Thanks,
      SSLV

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @sslv

    I hope you are doing good today.

    Do you mean
    – in edit mode there will be a form and form field that should keep data that he can edit next time?
    – in View Profile updated data will show up?

    Kind Regards,
    Kris

    Thread Starter sslv

    (@sslv)

    Hello Kris,

    Thanks for your reply. In edit mode you are correct. User should be able to edit existing data only associated with that account.

    In View Profile I would probably use short-codes to extract data from the database. My only concern is to get the data of the corresponding user. For example, when i use the following short-code: [uwp_user_meta key="mobile" show="value"] this will return the value of the meta mobile and I can use it as I want with Elementor.

    Thanks for your time,
    SSLV

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @sslv,

    If the Users WP plugin supports custom user meta, you can map the meta fields of the Users WP plugin to the value submitted via the Form.

    You should find more info regarding that under “User Meta Mapping”:
    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#registration-and-login-forms

    You’ll have to add the meta_key for the respective fields from the UsersWP file as the “Label” and the field which should be assigned to it as its value, under “Custom user meta” settings when you edit the form.

    Screenshot at 15:44:24.png

    Kind Regards,
    Nithin

    Thread Starter sslv

    (@sslv)

    Hi Nithin,

    Thanks for your reply.

    I created a form using the fields I wish to connect with my Users. However as shown in your screenshot, I cannot find the Custom User Meta Settings in my form. From what I have found online the Custom User Meta settings are under User Registration which is missing from the nav-menu of my custom form. Do I have to purchase Forminator Pro for that?

    https://paste.pics/997909eecfeb9901687a9ace6f49f933

    FYI, the form I created is from BLANK template (Not user Registration).

    Please let me know where I can find the Custom User Meta Settings.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @sslv

    I hope you are doing well.

    FYI, the form I created is from BLANK template (Not user Registration).

    You need to use the user registration form,

    Note: The Forminator won’t work for use editing ( it would require custom codes )

    In the Registration Form, you can enter your regular inputs and map them to the meta key in the mapping tab: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#registration-and-login-forms

    Using regular form also would require custom coding using Forminator hooks and the wp user update https://developer.www.ads-software.com/reference/functions/wp_update_user/

    Best Regards
    Patrick Freitas

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @sslv ,

    We haven’t heard from you for some time now, so it looks like you don’t need our assistance anymore.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

    Thread Starter sslv

    (@sslv)

    Hi i was away for holidays. Thank you all for your comments.

    Couple of things I have tried.

    • I created a new Registration Form using Forminator
    • I renamed the form to Skills and Achievements
    • I deleted all default fields (except email, i cannot remove that)
    • I created custom input fields (see screenshot1 below)
    • I displayed form in a page
    • So my questions are:

      1. How to remove email? I don’t want this form to register users, I simply want to allow my users to upload additional info about their profile, as well as be able to modify those data at any time.

      2. How to prevent form from submitting a new user? I don’t want any emails, passwords, usernames, or user roles in this form. I simply want some custom user inputs like text and number fields

      3. Even if I fullfil the email and the additional info in the form as shown in the screenshot below, after submission the data will dissapear. How to fetch data to the corresponding account?

      https://paste.pics/d3a3a9385c5ce2385d7368a036017ccc

      Is it possible to achieve the above?

      @wpmudevsupport12 you mentioned something about:

      Note: The Forminator won’t work for use editing ( it would require custom codes )

      Is there any documentation for that?

    • This reply was modified 3 years, 1 month ago by sslv.
    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @sslv

    Thanks for your questions but I’m afraid there’s no solution to that.

    There’s been a bit of confusion, apparently, with our initial response and I apologize for that.

    It’s clear that you wish to use Forminator form to actually edit existing user data. As my colleague (Patric above) already mentioned, User Regiastration forms can be used to add custom user data but not for editing user data.

    So the answer to questions 1, 2 and 3 is that it’s not possible. It all relates to editing existing user data and Forminator does not support such scenario (at least not yet).

    As for the last question (about docs for custom codes), there’s no example or guide on this specific modification but if you fill like giving custom coding a try, you’ll find Forminator API docs here:

    Forminator API documentation

    There are also multiple hooks (filter/action) available but there’s no separate document for them. They are all described right in plugin code in form of comments so a search for “apply_filter” and “do_action” strings on plugin code would let you find them.

    Kind regards,
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @sslv ,

    We haven’t heard from you for over a week now, so it looks like you don’t have more questions for us.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to associate form with specific user?’ is closed to new replies.