Skip Navigation

[Resolved] Please be more clear in your API documentation!

This support ticket is created 6 years, 11 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Beda 6 years, 11 months ago.

Assisted by: Beda.

Author
Posts
#596864

Link to documentation page: https://toolset.com/documentation/customizing-sites-using-php/functions/#checkboxes

Please be more clear that the output=raw parameter disables the separator parameter.

This code ignores the separator parameter. It returns comma with a trailing space and not without, as defined.

types_render_field( "mail-status", array( "separator" => ",", "id" => $email_id, "output" => "raw" ) );

Spent hours trying to figure out what I was doing wrong.

#597133

Yes, I can confirm this.

Generally "raw" will just output how it's saved in the database, hence it will not allow any customization that needs HTML.
I asked to clarify that on the DOC.

Thank you for the hint.