Dynamic Default Value – help

Home Forums Quform WordPress Dynamic Default Value – help

This topic is: resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #32693
    budbay1
    Participant

    I am trying to use a shortcode to populate a list.

    The list I would like to use is coming from a shortcode generated based on a wpDataTables query result.

    I have put this shortcode into the parameter field – does not work.

    Not sure what the next steps are. Reading the documentation and it states:

    Form values can be populated from the shortcode by adding a “values” attribute to the shortcode.

    What exactly is a values attribute and how do I add this?

    Thanks for any assistance.

    #32697
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #32708
    budbay1
    Participant

    Ally –

    I have read that and it has not helped me. My question stated I have read the documentation about using this and it states:

    Form values can be populated from the shortcode by adding a “values” attribute to the shortcode.

    That line comes from the Dynamic default value guide and I am asking what/how/where values are added as that guide does not get into that step.

    Thanks

    #32718
    budbay1
    Participant

    Here is what I have tried. I have added a parameter “Names” to the field.
    The shortcode I want to use is [wpdatatable id=12] – it is a query and returns a list of names.
    The options added to the field include: Cat, Dog, Steve, Susan

    With Steve & Susan values returned with [wpdatatable id=12]

    So my expectation when applying this is the drop down has Cat & Dog removed as they are not in the list (I really want to simply populate the available list based on the shortcode but I don’t think that is doable)

    In the default values box I have tried the following, with none working.

    values=”names=[wpdatatable id=12]”
    values=”names=wpdatatable id=12″
    [quform id="1" values="names=wpdatatable id=12"]
    [quform id=”1″ values=”names=wpdatatable id=12″
    names=wpdatatable id=12
    values=names=wpdatatable id=12
    [values=names=wpdatatable id=12]
    [values=names=”wpdatatable id=12″]
    [quform id=”1″ values=”names=[wpdatatable id=12]”]

    I don’t know what the format is, but have tried almost everything I can think of.

    Even removing the shortcode and trying what that resource page has for Select Menu:

    [quform id="1" values="foo=Option 1"]

    and nothing happens.

    Thanks

    #32722
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #32734
    budbay1
    Participant

    Thank you for your help Ally!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy