Skip Navigation

[Resuelto] Select Drop-Down Field Hard Coded to 100px

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

Problem:
Toolset Forms select2 fields put into initially hidden Form conditions are not set at 100% widths, instead they are rendered rather too small (around 100px) once the condition allows seeing that Select2 Field.
There is no easy solution of setting the select2 instance container to get the parent width when it is either hidden or being hidden, this is a known issue on select2.

There will be no solution for this imminently in Toolset

This support ticket is created hace 7 años. 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Este tema contiene 8 respuestas, tiene 3 mensajes.

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

Asistido por: Beda.

Autor
Mensajes
#591752

I have a CRED form that select drop-down using the shortcode:

 [cred_field field='course-location-address' post='training-course' value='' urlparam='']

A portion of the resulting html is:

<span class="toolset_select2 toolset_select2-container toolset_select2-container--default toolset_select2-container--below toolset_select2-container--focus" dir="ltr" style="width: 100px;">

You can see that the width has been set to 100px by an inline style, which messes up my form.

#591809

Hi, I'll be glad to help.
- Please temporarily disable all plugins except Toolset plugins and activate a default theme like Twenty Seventeen. If you need to activate a Maintenance Mode plugin while testing, that's okay. Is the inline style still applied to the CRED field? If not, reactivate your parent theme, child theme, and plugins, one by one, until the conflict is revealed.
- If the inline style was not corrected, please take a screenshot showing your settings in Toolset > Settings > Forms.
- Let me know your settings in Toolset > Settings > General > Bootstrap loading.
- Let me know if you have any custom JavaScript added to this form's JS panel, or any relevant Content Template or View used to display this form.

#591832

My theme is loading Bootstrap 3.0.
There's nothing in the JS or CSS editor panels for the form.

Then I did:
- Created a staging site
- Deactivated all plugins but the Toolset ones (not fixed)
- Set the active theme to Twenty Thirteen (not fixed)
- Toggled the "Toolset should load Bootstrap 3.0" option (not fixed)

The effected select drop-down field is within a Conditional Group, so for hoots I moved it above the Conditional Group and it displays correctly.

So it looks like the issue only appears when the select field is within a Conditional Group.

#591838

Strange, I'm not able to replicate that issue locally so I suspect there is a configuration setting somewhere I'm missing. In order to isolate that, I will need to create a clone of your site and install it locally where I can monitor the server logs as I make adjustments. If it's okay with you, I will install the Duplicator plugin to create that clone and begin testing. Please provide login credentials in the private reply fields here if you approve, and I'll get started as soon as I can.

#591843

No private fields available.

#591844

I must have chosen the wrong setting, sorry. Try now.

#592148

Thanks, I'm able to see the issue on your site but I'm not quite clear why it's happening, so I have asked my 2nd tier support team to take a look. In the meantime, I have added the following JavaScript to override the 100px width:

jQuery(window).bind("load", function() {
   jQuery( ".toolset_select2.toolset_select2-container.toolset_select2-container--default" ).attr('style', '100%');
});

Please stand by and I will update you when I have some more feedback from the team.

#596816

Hi, just a quick update to let you know our 2nd tier support team has escalated this issue to the CRED development team. They plan to include the fix in an upcoming release of CRED, but I do not have a timeline for implementation just yet. I'll keep you posted here. In the meantime, please use the workaround I mentioned earlier.

#1303633

This issue will not be adjusted in Toolset in any foreseeable time.

We are sorry to close this here.