This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user wanted to pre-populate their post custom fields on their frontend form with their current user's custom field so they won't have to re-enter the data.
Solution:
You can pass the shortcode for that user field into the value attribute of the Form field to pre populate it.
An example of the user field code it.
[types usermeta='field_name' current_user='true'][/types]
Just replace field_name with the actual slug of your custom field.
This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Tell us what you are trying to do? i want to use user information (first name, id number....) as a prefilled fields in a post form. for example: a user fill only once his private information. and then - every time he submit a post form - his privat info is written there and submitted as the value of one of the fields.
the idea is that a person will not need to enter the same information every time he submit a form (name, last name...) and this info would only be filled once.
hi, it's not exactly what i wanted. i'll try to explain the process that users are going throw my site.
first, the problem my site wants to answer: every morning parents in my daycare has to fill out a "health declaration" about their child (because of Corona virus...). instead of fill out over and over the same information EVEY MORNING,
i was thinking about creating a system that parents would fill out the information ONLY ONCE in sign up, and than, every morning the information would appear in the declaration form automatically so they won't has to fill it again.
what i did?
1. i created USER FORM with cred, with all the relevent information i need them to fill every day (privat name, phone number...)/
2. i created a POST TYPE for "health declaration", and custom fields - the same as the custom fields in the USER FORM.
3. i created a POST FORM with cred, to add a health decleration.
my problem now is ho to fill automatically the fields in the POST FORM with the information from USER FORM.
i dont want them to type every day the same information. just want theme to check all the AUTOMATICALLY FILLED fields ar ok, and press "submit".
this is the code i use:
[cred_field field='h_mechanechet' force_type='field' class='form-control' output='bootstrap' value=' [types field="mehanechet" user_current='true'][/types]']
"mehabechet" is the field from user fields i created.
"h_mechanechet" is the field i want to autofill in the cred form.