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 3 années et 8 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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é : 

This topic contains 3 réponses, has 2 voix.

Last updated by larryL Il y a 3 années et 8 mois.

Assisted by: 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

Jamal
Supporter

Languages: Anglais (English ) Français (Français )

Timezone: Africa/Casablanca (GMT+01:00)

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

Jamal
Supporter

Languages: Anglais (English ) Français (Français )

Timezone: Africa/Casablanca (GMT+01:00)

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 hidden link
But, you are, currently, using the parent theme. Check this screenshot hidden link

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 hidden link

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!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.