Skip Navigation

[Résolu] user nicknames not loading in select field

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
The user was using custom code to display users in a dropdown inside a Toolset Form.

Solution:
It turns out that the code was added to the child theme functions.php file. The child theme was not active.

This support ticket is created Il y a 4 années et 2 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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

Supporter timezone: Africa/Casablanca (GMT+01:00)

Marqué : 

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par larryL Il y a 4 années et 2 mois.

Assisté par: Jamal.

Auteur
Publications
#1754177

I followed https://toolset.com/forums/topic/dropdown-that-shows-all-users/#post-590063 and it was working. Now none of the users are loading in my cred forms and existing posts data is missing that had a user selected. Please help.

#1756055

Hello and thank you for contacting the Toolset support.

To better assist you with this issue, I'll need to take a closer look at your form. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

Please provide as many details as possible:
- What form?
- Where is the form displayed/used?
- Where did you add the custom code to pull the users into the form field?

Best regards,
Jamal

#1757633

Thank you for the credentials, I was able to log in, but I am not sure where the users select should appear on the form that I have checked "absence-review-form".

I searched for the custom code and I find it on the "functions.php" file of the child theme, check this screenshot lien caché
But, you are, currently, using the parent theme. Check this screenshot lien caché

Because the parent theme(Divi) is active, the custom code on the child theme is never executed, so the users select will never be constructed for the forms that are using it.
Please check, if activating the child theme will correct this?
If it does not, please confirm where the users select should appear on the said form. Check this screenshot lien caché

If you need to keep the parent theme, copy the custom code into a new entry in Toolset->Settings->Custom Code, and activate it for the frontend calls.

#1758637

My issue is resolved now. Thank you!