It's pretty much the same as for populating a dropdown from a database read.
Ok, so I do a read from the dropdown?
set the options to {var:field_select13}
Do I need to set up an event onchange trigger and run a function?
Sorry, first time attempting this
Matt
Have a look at the dynamic dropdown demo form, just use a radios group instead of the second dropdown.
Needs to return an array, you've just set options to a string.
I too am pretty sure you have that syntax wrong why do you have a switch statement in there
Looks fine, what have you got in the options list of your radio field, what have you got in your reload action, what IS it doing?
in the radio options change it to {var:read_data#.model} replacing # and model with whatever they're supposed to be the writing is tiny and I'm tired
you can't use shortcodes in PHP. $this->get("blahblah", "") instead.
The switch statement is like saying if $variable is A, do this. If it's B, do this. If it's C etc etc. the way you have it now won't work.
Do you have a custom code block after it with {view:field_identifier}?
That puts me back to where I originally started...
The picture in my first post explains what I'm trying to do. I want the first dropdown to show the "created_by_alias" field from two categories (this I already have set). After selected, I would like the second dropdown to show everything that matches the first dropdown selection but display the "title" field associated with the first selection in just one of those categories.
I have a store name set as the "created_by_alias" field which falls in multiple categories (this is the first dropdown)
when the store name is selected I want the second dropdown to show the multiple "title" options from category 12 that are associated with the store name
and third dropdown to show category 13
Hope I explained that correctly
Hang on sorry let me try make sure I have this.
On Load: Read data --> Display Dropdown 1
On selecting something from Dropdown 1: Read data based on Dropdown 1 selection--> Display Dropdown 2
On selecting something from Dropdown 2: Read data based on Dropdown 2 selection --> Display radio buttons
Is that right? All you're stuck with is trying to get the right information displayed on the Radio buttons?
Sorry if I'm confusing... I was using dropdowns for everything because I assumed I could use the
same data in a Radio Button later once I figured out the code...
This is what I would like -
On Load: Read data --> Display Dropdown 1 (cat12 & cat13 "created_by_alias")
On selecting something from Dropdown 1: Read data based on Dropdown 1 selection--> Display Radio Buttons 1 (cat12 "title")
On selecting something from Dropdown 1: Read data based on Dropdown 1 selection--> Display Radio Buttons 2 (cat13 "title")
I would like two separate radio buttons based on the initial selection in Dropdown 1
Show me the read data action in the event that you use to reload the radio fields, and the name of the fields you want for the value and the label
If you want only one "A Pea in the Pod" to show up you will need to retrieve DISTINCT(model.field_name):model.alias
And try using created_by_alias as your dropdown value and in your where condition, since it looks like you're using "title" which again appears to actually be "Up to 26.5% blahblahblah"
Also I wouldn't use introtext, I'd use the id for the value of the radio group.