Skip Navigation

[Resolved] Multiple instances of a single text field

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year, 4 months ago.

Assisted by: Waqar.

Author
Posts
#2512203

I am using a single text line field and using multiple instances option.

As i am using custom PHP to fetch the data, i am using types_render_field function to use a seperator.
Like this $sdec = types_render_field( "services", array("item" => $pracid,"seperator" => "|"));

But it is showing all text as once and not getting seperated.

I want to differentiate it the text lines.

Check this screenshots:
1. hidden link
2. hidden link

#2513657

Waqar
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting us and I'd be happy to assist.

I notice a typo in the code that you're using. The attribute name should be "separator" and not "seperator".
( ref: https://toolset.com/documentation/customizing-sites-using-php/functions/#textfield )

regards,
Waqar

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.