• Resolved mukape

    (@mukape)


    Hello,

    I’m using forminator for new users sign up and login
    I created a user field like birthdate and cv and attached this fields to the users using ACF, so the user can update his info and upload his cv.
    I’m trying to allow user to update this info while registration using a forminator form, but i have one problem:
    when user is uploading his cv using forminator form, it’s uploading the file but saving as a url like this <a hre=””>filename.ext</a> — so if i set an upload file in the user profile settings page it cannot read the file
    but if i set it as a text input it will show like a href ul as i mentioned
    is there any fix for this to be compatible with acf or wp uploader?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @mukape

    I hope you’re well today!

    I’m not sure what (yet) but something is not quite right here: Forminator does not and should not add the A HREF tag around the uploaded file name on its own. It is only passing the raw (in text format) file path and nothing more so if there is A HREF – it is unexpected behavior caused by either some specific setting of ACF or site or by some custom code or a conflict.

    We’d need to take a closer look at this so could you please share export of the form itself with us (note: this will not include form submissions – so no user data) and export of your ACF fields settings?

    To share the form:

    – go to the “Forminator -> Forms” page and click on a little “gear” icon next to the form in question
    – select “Export” option from drop-down menu
    – copy given export code and put it at “pastebin.com” service (as public)
    – and share direct link to it in your response below.

    In a similar way, for ACF please go to “ACF -> Tools” page and in “Export” section select the checkbox for relevant field group only and click “Export as JSON”. Then put the JSON code either at “pastebin.com” (the same way) or at your Google Drive or Dropbox or similar and share a link to it with us as well.

    This way will be able to import both to test site to recreate the setup and then testing it to find out what’s happening and how to fix it.

    Best regards
    Adam

    Thread Starter mukape

    (@mukape)

    Hello, here’s the requested form and ACF fields:
    1. Export of form itself: https://pastebin.com/pEqw3net
    2. The ACF fields: https://pastebin.com/fjr1ADWP
    3. The Code snippet I’m using: https://pastebin.com/cKz6n6rE
    you can use this snippet in code snippets plugin or as mu-plugin

    FYI, I’m trying to make a register form with Forminator that allows users to upload their CV’s from the register form.
    1st I created a file upload field with ACF and attached it to the users
    then I created the registration form and created the upload file also in the form, then I connected each together by giving the field name to the input in the Forminator
    Help me to get the uploaded file from the forminator registration form, into its ACF field.

    • This reply was modified 1 year, 10 months ago by mukape.
    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @mukape

    Thank you for response!

    I checked it and I’m a bit confused here:

    1. the form that you shared – it’s just a regular form, not a “user registration” form; that’s correct or it should be a from to actually create a user account?

    2. the form is set to not show for logged-in users but the code is actually attempting to read user data into form – which is impossible when user is not logged-in.

    I think that 2nd point is the key here. What you are trying to do with your code snippet is actually to read the data from user profile and inject it into the form fields.

    But if I correctly understand your goal is actually the opposite:

    – you want the form to be there
    – (question) the form should create user account or only allow them to add/edit profile data – for already registered and logged-in user?
    – and you want to save the data from the from to the ACF fields

    Is that correct or am I still missing the point? I just want to make sure so we could provide more accurate and “targeted” assistance.

    Best regards,
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @mukape ,

    We haven’t heard from you for over a week now, so it looks like you no longer need our assistance.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Upload a file – user registration’ is closed to new replies.