Skip Navigation

[Resolved] [cred_field] Radio Field Value Not Displaying

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
- 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)

This topic contains 3 replies, has 2 voices.

Last updated by alvaroM-5 1 year, 9 months ago.

Assisted by: Minesh.

Author
Posts
#2553647
cred_fields_not_shown.JPG

I have the following CRED fields in an edit form:

<div class="box-label">
¿El inmueble dispone de piscina privada o comunitaria?
[cred_field field='piscina' post='alquiler' value='' urlparam='' output='bootstrap']
</div>
<div class="box-label">
¿El alojamiento dispone de aire acondicionado en alguna de las estancias?
[cred_field field='aire' post='alquiler' value='' urlparam='' output='bootstrap']
</div>
<div class="box-label">
¿El alojamiento dispone de WiFi?
[cred_field field='wifi' post='alquiler' value='' urlparam='' output='bootstrap']
</div>

The values are NOT populated, when the edit form is displayed.

It's weird because, some weeks ago it was working. I have not changed the form nor the custom post type field name/type.

In order to see the fields you need to log as a user, let me know if you need such access to investigate this issue.

#2554049

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Yes, can you please share problem URL where you added the form as well as admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) 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.

#2554259

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I see with your edit form you have added two conditional form field groups as given under:
=> hidden link

[cred_show_group if="( $(tipo) eq 'alquiler' )" mode="none"]

<div class="box">
	<h2>Datos del alojamiento</h2>
	<div class="box-label">
    <strong>Capacidad</strong>
  	[cred_field field='capacidad' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
  	<div class="box-label">
    <strong>Dormitorios</strong>
  	[cred_field field='dormitorios' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
	<div class="box-label">
    <strong>Baños</strong>
  	[cred_field field='banos' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
    <div class="box-label">
    <strong>¿El inmueble dispone de piscina privada o comunitaria?</strong>
  	[cred_field field="piscina" post="alquiler" force_type="field"  class="form-control" output="bootstrap"]
      
    </div>
  	<div class="box-label">
    <strong>¿El alojamiento dispone de aire acondicionado en alguna de las estancias?</strong>
  	[cred_field field='aire' post='alquiler' value='' urlparam='' output='bootstrap']
    </div>
  	<div class="box-label">
    <strong>¿Se admiten mascotas en el alojamiento?</strong>
  	[cred_field field='mascota' post='alquiler' value='' urlparam='' output='bootstrap']
    </div>
  	<div class="box-label">
    <strong>¿El alojamiento dispone de WiFi?</strong>
  	[cred_field field='wifi' post='alquiler' value='' urlparam='' output='bootstrap']
    </div>
</div>

[/cred_show_group]

[cred_show_group if="( $(tipo) eq 'venta' )" mode="none"]

<div class="box">
	<h2>Datos del alojamiento en venta</h2>
  	<div class="box-label">
    <strong>Precio</strong>
  	[cred_field field='precio' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
    <div class="box-label">
    <strong>Metros cuadrados construidos</strong>
  	[cred_field field='construidos' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
    <div class="box-label">
    <strong>Metros cuadrados útiles</strong>
  	[cred_field field='utiles' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
    <div class="box-label">
    <strong>¿El inmueble dispone de jardín o terraza?</strong>
  	[cred_field field='jardin' post='alquiler' value='' urlparam='' output='bootstrap']
    </div>
    <div class="box-label">
    <strong>¿El inmueble dispone de garaje?</strong>
  	[cred_field field='garaje' post='alquiler' value='' urlparam='' output='bootstrap']
    </div>
	<div class="box-label">
    <strong>Capacidad</strong>
  	[cred_field field='capacidad' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
  	<div class="box-label">
    <strong>Dormitorios</strong>
  	[cred_field field='dormitorios' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
	<div class="box-label">
    <strong>Baños</strong>
  	[cred_field field='banos' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
  	<div class="box-label">
    <strong>¿El inmueble dispone de piscina privada o comunitaria?</strong>
  	[cred_field field='piscina' post='alquiler' urlparam='' output='bootstrap']
    </div>
  	<div class="box-label">
    <strong>¿El inmueble dispone de aire acondicionado en alguna de las estancias?</strong>
  	[cred_field field='aire' post='alquiler'  urlparam='' output='bootstrap']
    </div>
  	<div class="box-label">
    <strong>¿El inmueble dispone de WiFi?</strong>
  	[cred_field field='wifi' post='alquiler' urlparam='' output='bootstrap']
    </div>
</div>

[/cred_show_group]

I can see with both conditional field group you have the fields that is not working is added to both conditional group. That is why its not working due to duplication of fields.

If you'll remove the last conditional group:

[cred_show_group if="( $(tipo) eq 'venta' )" mode="none"]

<div class="box">
	<h2>Datos del alojamiento en venta</h2>
  	<div class="box-label">
    <strong>Precio</strong>
  	[cred_field field='precio' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
    <div class="box-label">
    <strong>Metros cuadrados construidos</strong>
  	[cred_field field='construidos' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
    <div class="box-label">
    <strong>Metros cuadrados útiles</strong>
  	[cred_field field='utiles' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
    <div class="box-label">
    <strong>¿El inmueble dispone de jardín o terraza?</strong>
  	[cred_field field='jardin' post='alquiler' value='' urlparam='' output='bootstrap']
    </div>
    <div class="box-label">
    <strong>¿El inmueble dispone de garaje?</strong>
  	[cred_field field='garaje' post='alquiler' value='' urlparam='' output='bootstrap']
    </div>
	<div class="box-label">
    <strong>Capacidad</strong>
  	[cred_field field='capacidad' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
  	<div class="box-label">
    <strong>Dormitorios</strong>
  	[cred_field field='dormitorios' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
	<div class="box-label">
    <strong>Baños</strong>
  	[cred_field field='banos' post='alquiler' value='' urlparam='' class='form-control' output='bootstrap']
    </div>
  	<div class="box-label">
    <strong>¿El inmueble dispone de piscina privada o comunitaria?</strong>
  	[cred_field field='piscina' post='alquiler' urlparam='' output='bootstrap']
    </div>
  	<div class="box-label">
    <strong>¿El inmueble dispone de aire acondicionado en alguna de las estancias?</strong>
  	[cred_field field='aire' post='alquiler'  urlparam='' output='bootstrap']
    </div>
  	
<div class="box-label">
    <strong>¿El inmueble dispone de WiFi?</strong>
  	[cred_field field='wifi' post='alquiler' urlparam='' output='bootstrap']
    </div>
</div>

[/cred_show_group]

You will see it working back again.

You should not duplicate the fields on your form.

#2554369

Hi Minesh,

I modified the entry form as to not repeat fields.

So I'm fine now 🙂

Thanks a lot!

PS: I suggest that you report this as a bug, there should be no issue in repeating fields under different entry-block conditions. Actually it was working before. Probably a recent plugin update made this fail.