Pre-populate a field from a field in the current user’s profile checkbox.
-
Each user in the personal profile has a checkbox field called market_value ( Name metakey: market_value ), where he can choose from 10 response options.
I would like to know if it is possible to pre populate a field of the CF7 form with the value of the metakey market_value of the current user.
This is the php code I use to retrieve the metakey value:
$marketvalue = get_user_meta( get_current_user_id(), 'market_value', true );
I tried to insert:
default:user_market_value
but it doesn’t work, it returns no value.
Do you have any suggestions? Is it possible to retrieve the values ??entered by the user even if in his profile that field is a checkbox and not a text?
Thanks.
- The topic ‘Pre-populate a field from a field in the current user’s profile checkbox.’ is closed to new replies.