Saltar navegación

[Resuelto] I need the search values default to be empty

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

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 -

Zona horaria del colaborador: Asia/Karachi (GMT+05:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por JC Anderl 4 years, 6 months ago.

Asistido por: Waqar.

Autor
Mensajes
#2238699

Tell us what you are trying to do?
I am trying to create a search form that has the default values empty.

Is there any documentation that you are following?
It is similar to this page, but I don't know how they fixed it:
https://toolset.com/forums/topic/how-to-have-an-empty-value-in-select-box/

What is the link to your site?
It is on this page:
enlace oculto

#2238783

Hi,

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

Please open the edit screen of the view used on the page and you'll see the 3 instances of the shortcode "wpv-control-postmeta" for the custom field search filters in the "Search and Pagination" section.

To include an empty first/default option, in these search fields, you can include the "default_label" attribute in those shortcodes:
( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-control-postmeta )


[wpv-control-postmeta default_label="-select-" ......]

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#2239359

My issue is resolved now. Thank you!