• Resolved Leandro

    (@leandroprz)


    I just read this article but I can’t work out how to use default:get on a menu.

    When adding default:get my dropdown menu disappears from the contact form.

    This is what I’m using in the form:

    <label>Subject
        [select* your-subject-menu "Workshops and courses" "Photo safaris" "Stock videos" "Prints" "Store item" "Licences" "Services" "Consulting" "Time-lapse production" "Time-lapse post-production" "Other" default:get]</label>

    I also tried adding default:post_meta with no luck.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @leandroprz,

    You’re using the default:get option after your form tag values, you need to put it before them.

    See How tags work

    Best regards,
    Yordan.

    Thread Starter Leandro

    (@leandroprz)

    That fixed my issue. Thank you.

    James G

    (@jamesgilfoyle)

    Just if anybody in the future like me is wondering how to pass multiple values in a single parameter and lands here and scratches their head for a while before remembering basic PHP information… It’s been so long since I coded I’m not sure I could actually code anymore!

    Anyway – you can pass multiple values as follows where you have set up the drop-down to allow multiple selections:

    your-subject-menu[]=VALUEONE&your-subject-meny[]=VALUETWO

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Passing a parameter via URL for a menu’ is closed to new replies.