Home › Forums › Quform WordPress › Dynamic Default Value – help
- This topic has 5 replies, 2 voices, and was last updated 3 years, 10 months ago by budbay1.
- AuthorPosts
- March 15, 2021 at 4:25 pm #32693budbay1Participant
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.
March 16, 2021 at 8:32 am #32697AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 16, 2021 at 12:21 pm #32708budbay1ParticipantAlly –
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
March 16, 2021 at 8:26 pm #32718budbay1ParticipantHere 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, SusanWith 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
March 17, 2021 at 9:40 am #32722AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 17, 2021 at 12:30 pm #32734budbay1ParticipantThank you for your help Ally!
- AuthorPosts
- You must be logged in to reply to this topic.