ElementHelper
ElementHelper copied to clipboard
input_properties not working for listbox TV
{
"name": "home_cta_show",
"caption": "Show Call To Action URL",
"description": "Show the CTA button on this page?",
"category": "CTA button",
"rank": "2",
"type": "listbox",
"input_properties": "Yes==yes||No==no",
"default_text": "yes",
"template_access": ["Homepage"]
}
This is creating a TV with a empty Input Option Values field
@DESIGNfromWITHIN I don't know why, but I'm using "elements" instead of "input_properties" for that.. So this still works for me:
"elements": "Yes==yes||No==no",
@hugopeek is correct you need to use the "elements" property to fill in the "Input Option Values" field. The weird naming comes from what the MODx developers chose as the column name for the TV table in the database. I plan on mapping these to names that make more sense in 2.0.