Skip Navigation

[Gelöst] How do I insert an apostrophe in CRED field placeholder?

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:
How do I insert an apostrophe in CRED field placeholder?

Solution:
Apostrophe issue was a known issue and was fixed in Types v2.2.21

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

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von robertM-17 vor 7 Jahren.

Assistiert von: Noman.

Author
Artikel
#588638
Screenshot 2017-11-10 15.19.38.png

Tell us what you are trying to do?

trying to add an apostrophe to a placeholder as below:

[cred_field field='post_title' post='memap' value='' urlparam='' placeholder='[wpv-user info="firstname"] \'s meMap' class='form-control' output='bootstrap']

Is there any documentation that you are following?
I have searched - not found. By the way, there is a typo on your Search page title. Will upload the pic.
** THE PIC HAS NOTHING TO DO WITH MY APOSTROPHE REQUEST - just noticed it while searching

I've tried \' I've tried ''
based on toolset and wider web searched. Not working so wanted to know how to include this character specifically ' or any similar special characters if needed later.

Thanks

#588653

Noman
Supporter

Sprachen: Englisch (English )

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

Hi Robert,

Thank you for contacting Toolset Support and reporting both issues.

1. Apostrophe issue is a known one and reported to our dev team, it basically originates from Types plugin and shows up in a CRED form only. Until this is fixed you can use `instead of an apostrophe, I believe it will work fine, if not then we need to wait.

2. For search typo, I have informed our website admin to change that, thanks for that too.

Sorry for inconvenience it has caused. I will update you here as soon it is fixed.
Thank you

#588681
Screenshot 2017-11-10 17.31.21.png
Screenshot 2017-11-10 17.31.00.png

Ok thanks Norman, I'll use that.

Similarly, with the screenshots here -
What would be the correct format to get the username's as default values?

I've tried info='firstname' and info="firstname" .

Is this even the right shortcode for getting defaults into cred?
Thanks again

#589136

Noman
Supporter

Sprachen: Englisch (English )

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

Hello Robert,

I see that you are trying to use that shortcode in the Types default value field, this shortcode will not render in the Types field as its not expected to render there. Instead to give a default value for a field, you can add that shortcode in the CRED form like this:

[cred_field field='book-author' post='book' value='[wpv-user field="user_login"] - [wpv-user field="user_firstname"]' urlparam='' class='form-control' output='bootstrap']

==> This shortcode will give the user’s firstname in the default value in a CRED form.

Thanks

#589143

OK thanks Norman
This works.

Thanks for clarifying
It's never clear to me which to use - types, views, cred shortcodes in each case. it is very confusing. Takes months to understand.

The other bug I will let you guys work out and call this one closed