Skip Navigation

[Resolved] Custom field value in Toolset form

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 6 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#602153

I am trying to show custom field value in form field. This one is working for me
value="[wpv-post-title id='[types usermeta='user_carrier_id' user_is_author='true'][/types]']"
and this one is not working
value="[types field='legal_name' id='[types usermeta='user_carrier_id' user_is_author='true'][/types]'][/types]"

Can you please look into this.

#602195

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - that is expected as the issue is the nested shortcode you are using and that will not get parsed.

What you should do it try to wrap you shortcode with single custom shortcode:

For example - try to add following code to your current theme's functions.php file:

function func_get_custom_val($atts) {
     
$val = do_shortcode("[types field='legal_name' id='[types usermeta='user_carrier_id' user_is_author='true'][/types]");
      
    return $val;
}
add_shortcode("get_custom_val", "func_get_custom_val");

And later try to assign custom shortcode to value attribute:

value="[get_custom_val]"
#602245
Screenshot_1.jpg

Thanks for the reply Minesh. I have created custom post type with custom fields. Now fields lables are showing out of the box. Can you please let me know how can I can format them. Please check attached screenshot for more clarification.

#602418

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - that is totally different issue.

Could you please kindly create a new ticket for your each new question. This will help other users searching on the forum. Thank you for understanding.