ElementHelper icon indicating copy to clipboard operation
ElementHelper copied to clipboard

input_properties not working for listbox TV

Open DESIGNfromWITHIN opened this issue 11 years ago • 2 comments

{
    "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 avatar Sep 16 '14 09:09 DESIGNfromWITHIN

@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 avatar Sep 16 '14 10:09 hugopeek

@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.

roryg avatar Sep 16 '14 22:09 roryg