Skip Navigation

[Resuelto] Condition for custom fields doesnt work

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

Problem:
Condition for custom fields doesnt work

Solution:
In this case, I removed the conditions and readded it and that's the only change I made and when I tested I see it was working.

You can find the proposed solution in this case with the following reply:
https://toolset.com/forums/topic/condition-for-custom-fields-doesnt-work/#post-1246291

Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

This support ticket is created hace 5 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Este tema contiene 8 respuestas, tiene 2 mensajes.

Última actualización por linaS hace 5 años, 5 meses.

Asistido por: Minesh.

Autor
Mensajes
#1244501
Screenshot_1.png
Screenshot_4.png
Screenshot_2.png
Screenshot_3.png

Hello.

I'm trying to use condition to show fields, but they don't work totally at the site.
For example i need to have option if the status of my CPT changed, some field has to appear, but it doesn't work.
All this condition option can't be show just from admin dashboard. If it is necessary i can send access to the site.

Here are screenshorts.

1. I have field select - "status" with several options.
2. And multiline field - "reason".
3. I put condition like : status = some option
4. But when i change the status inside the post to this option, condition field "reason" for this option isn't shown

Thank you

#1244583

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I just tested the issue and set up a select field with few options and added the multiline field that should be displayed when specific option from the select box is selected and it works just fine.

It looks like the issue is due to non-English language you are using as option value. What if you try to change select option values and assign the specific numbers to each option and then re-add the condition and check if that helps to resolve your issue.

May I know what language you are using to configure your options?

#1244658
Screenshot_5.png
Screenshot_6.png
Screenshot_9.png
Screenshot_8.png

Minesh, hello.
By default i need to use Hebrew lang.
Slugs for all fields are in eng. But options in select in hebrew also for value.

Anyway i've tried right now to put one option in select to english.
And create the conditon with it, it doesn't work. Even the condition value is - the condition field doesn't appear (

Look:

#1245000

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Can you please share the link of the field group where you added the conditions?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1245741

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Can you please check now. I've tried to add conditional on two options

- if you select בהקפאה - it will display the Only for "On hold" status multiline box
- if you select לא רלוונטי - it will display the Only for "Not relevant" status multiline box

I see this is working on this post:
- enlace oculto

Can you please confirm.

#1246289

Minesh, hello.
I've cheked - yes, the conditional fields are working now.
Can you explain what was the problem there? So next time i will be able to fix it? )

Thanks you for your job!

#1246291

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Well - I just removed the conditions and readded it and thats the only change I've made and when I tested I see it was working.

Glad to help you and know that your issue is resolved.

#1246442

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Please feel free to close the ticket. 🙂

#1265397

Thank you Minesh!