The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Link form to user ID front end on public site
Hi,
Ok so I have created a form that I need contractors of my clients to complete.
The form is displayed on a public web page, so that I can email a link to the contractor, and ask them to fill in the form.
The bit where I am stuck is how do I link the form to the user ID of the client requesting the contractor to complete the form?
Does anyone have any suggestions?
I was thinking maybe they can select the user in a dropdown? If this is an option how do I create the dropdown?
Thank so much for your help.
February 15, 2019 at 6:29 am
To get the ID, the person has to be logged in, which means they have to be registered to use the system. If they're not logged in, there's no ID.
You can create a drop down of user ids: https://formidableforms.com/knowledgebase/frm_setup_new_fields_vars/#kb-display-userid-dropdown-on-front-end-for-admin
You'll have to edit this snippet, to remove the admin limitation, but you be opening yourself up to all kinds of privacy issues if you do, especially if you're in the EU.
February 15, 2019 at 2:50 pm
Thank you so much for your help. Mmm maybe i need to look at another option. Do you know if it is possible for the logged in user to send a link of a form to the contractor instead, that say can only be used once, so when the contractor fills in and submits the form it is saved to the user id of the person sending the link? Hope that makes sense
February 15, 2019 at 4:33 pm
No. To save a user ID, the person has to be logged-in.
However, you can save other information through a link using a query string. Data in query strings can be saved accessed and saved to fields on a form use get param.
https://formidableforms.com/knowledgebase/set-values-to-be-used-in-custom-displays-or-default-values/
Discussion closed.