Skip Navigation

[Resolved] cannot popuplate cred field with a url user field

This support ticket is created 7 years 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.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Noman 7 years ago.

Assisted by: Noman.

Author
Posts
#585598

Hi
I am trying to populate a cred field with a user field (website) of type url

<div class="cred-field cred-field-website">
<label class="cred-label"></div>
[cred_field field="website" post="trainercpt" value="[types usermeta='user-website' user_current='true'][/types]" urlparam=""]
</label></div>

I am getting empty field. If I just show [types usermeta='user-website' user_current='true'][/types] outside of the <div>, I get the value of user-website correct. I tried to populate the credi field with [types usermeta='user-phone' user_current='true'][/types] of type phone and it works fine. It seems to me that there is problem when the type is url.

Regards,
Nabil

#585745

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Nabil

Thank you for contacting Toolset support. I am not able to reproduce this issue at my end. This is the shortcode I am using in my CRED form:

<div class="form-group">
<label>	Website</label>
[cred_field field='user_url' post='user' value='' urlparam='' class='form-control' output='bootstrap']
 </div>

Please use the same syntax as above and check if it resolves the issue or not.

Also try to check it by deactivating all third-party plugins (except Toolset) and switching back to the Default Theme (e.g. Twenty Sixteen theme) to see for any possible conflicts with any of the plugins or themes?

Thank you