Skip Navigation

[Resuelto] Placeholders not shown, select_text attribute does not work

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem: I'm having a couple of problems in CRED:
- Placeholder text is not shown
- The select_text attribute does not work

Solution: The select_text attribute is a known issue and will be resolved in CRED 2.0. Placeholders should be added to CRED form fields using the placeholder attribute.

This support ticket is created hace 6 años, 6 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por Valeriia hace 6 años, 6 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#904508

Hi,

I'm not sure in which version it was introduced, but I'm pretty sure there is a bug as I've noticed it on a few sites:

- placeholders are not shown.
- select_text attribute for the select field shortcode displays "--- not set ---" regardless of what was set

Please check it on your side. Thanks.

#904548

- select_text attribute for the select field shortcode displays "--- not set ---" regardless of what was set
This is a known issue, thanks for the report. A fix will be included in the upcoming CRED 2.0 release.

- placeholders are not shown.
I'm not aware of a known issue with placeholders. Can you give me more information about this?
- What plugin version (or versions) exhibit this problem?
- What type of custom field is this?
- Is this a Create or Edit CRED Form?
- Is the problem visible in more than one browser, like Chrome or Firefox, etc.?
- Copy + paste the CRED field shortcode of one broken example here for me to review.

#905350

Hi Christian,

Thanks for the reply.

- What plugin version (or versions) exhibit this problem?

1.9.6.1

- What type of custom field is this?

input text, textarea

- Is this a Create or Edit CRED Form?

Both, quite bad actually, I had to fix it quickly with JS as the labels in the design are not shown and there is no way to understand what a field is for.

- Is the problem visible in more than one browser, like Chrome or Firefox, etc.?

All I tried: Chrome, Firefox, Opera, Yandex mobile.

- Copy + paste the CRED field shortcode of one broken example here for me to review.

                [cred_field field='customer-name' post='assignment' value='' urlparam='']

I just checked it on another site, same problem.

Thanks for looking into it.

#905691

I'm confused. The example field shortcode you provided does not include a placeholder attribute, are you saying that you have tried adding a placeholder attribute, but it does not work as expected? The placeholder should appear when you use the following code:

[cred_field field='customer-name' post='assignment' value='' urlparam='' placeholder='e.g. Pizza']

When I add a placeholder attribute, I'm not able to replicate this problem. Here's a live test using the latest plugin versions:
https://christiancox-22119-rtl-1.discover-wp.com/add-team-member/

Here's the code from the CRED form:

<div class="form-group">
  <label>Team member role</label>
  [cred_field field='team-member-role' value='' urlparam='' class='form-control' output='bootstrap' placeholder="e.g. Project Coordinator"]
</div>

If you sign up at our test sandbox discover-wp.com, I can give you wp-admin access to see this setup.

#906056

Oh... I competely forgot you can do that... thanks for reminding.

But I actually meant the placeholders that are set in the settings of the field. I'm closing the ticket now, because adding them via shortcode solves my problem, but I think you should still try to replicate the issue with the placeholder in the settings.

Thanks for helping.