• Resolved Cristian Santander

    (@crist0sant0)


    I have a problem with pass Fields as URL, in the url when a field is passing, is add [0] next to the name of the field.

    Example: https ://mywebsite.com/thankyou/?program[0]=science&name[0]=carl

    This is the new way to do this method, because I have a JS that read this fields in the URL, and I dont know if I have to modify my JS or this change later.

    Thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi @crist0sant0,

    Please add a screenshot of the redirect action settings.

    Thread Starter Cristian Santander

    (@crist0sant0)

    https://prnt.sc/v7k46e

    That is the screenshot of the redirect action settings.

    The URL generated is:
    https://mysite.co /confirmation/?programas[0]=Carreras%20T%C3%A9cnicas%20laborales&profesionales[0]&tecnicos[0]=Agente%20de%20Viajes%20y%20Turismo&especializacion[0]&idioma[0]

    Your settings are fine.
    We need a link to the page with the contact form,
    and also could you paste your form code here?

    Hi,

    I am also having the same issue with the [0] in the URL with the same settings as Cristian.

    The quiz is taken here…

    https://simplyamazingtraining.co.uk/test-yourself

    This then redirects to this page…

    
    https://simplyamazingtraining.co.uk/test-your-presentation-skills-results?question1[0]=5&question2[0]=4&question3[0]=5&question4[0]=5&question5[0]=5&question6[0]=5&question7[0]=5&question8[0]=5&question9[0]=5&question10[0]=5&question11[0]=5&question12[0]=5
    

    As you can see there is now this [0] in the query which has only appeared since the big update.

    Thanks

    Qube One ltd

    (@querysolutions)

    Hi @jameskoussertari,

    Please paste here your form shortcodes so we can check.

    JamesKoussertari

    (@jameskoussertari)

    If you mean form shortcode in the normal WordPress sense…

    
    <?php echo do_shortcode('[contact-form-7 id="2515" title="Test Your Presentation Skills"]'); ?>
    

    If you mean the shortcodes within the form code, they look like this…

    [radio question1 “1” “2” “3” “4” “5”]
    [radio question2 “1” “2” “3” “4” “5”]
    [radio question3 “1” “2” “3” “4” “5”]
    [radio question4 “1” “2” “3” “4” “5”]
    etc…

    Thanks

    freakk

    (@freakk)

    I have the same issue: text fields and textareas are fine, but select and radio boxes are sent with [0] (ie, sent as array).

    Qube One ltd

    (@querysolutions)

    Hi,

    It will be fixed in the next version that will be released during next week.

    Thank for letting us know.

    JamesKoussertari

    (@jameskoussertari)

    Hi,

    I just updated the plugin but the problem still remains.

    Thanks

    Qube One ltd

    (@querysolutions)

    Hi @jameskoussertari,

    We have not updated the plugin yet.

    Qube One ltd

    (@querysolutions)

    Hi,

    This issue has been fixed in version 2.2.8 that we have just released.
    Please download the latest version.

    JamesKoussertari

    (@jameskoussertari)

    All working now thanks!

    Thread Starter Cristian Santander

    (@crist0sant0)

    @querysolutions I update the plugin and work perfect, Thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[0] in Fields to pass as URL’ is closed to new replies.