newspublisher icon indicating copy to clipboard operation
newspublisher copied to clipboard

Setting Presets on Listbox TVs

Open GarretOverstreet opened this issue 7 years ago • 1 comments

I've created some listboxes as TVs, but the &presets parameter only works on text input TVs. I tried using some conditional logic on [[+npx.value]] placeholder n the "npListOptionTpl" chunk to compare values, (e.g. [[+npx.value:is=1:then=selected:else=``]]), however, it appears that placeholders cannot be used with snippets.

While a simple workaround would be to not use dropdowns and just swap TVs out for text inputs, I'd like to maintain the functionality of a listbox in the Manager for admins.

GarretOverstreet avatar Jan 30 '18 09:01 GarretOverstreet

Would it work to set a default value for the TV? I'm not sure how I would implement this in NP.

BobRay avatar Feb 10 '23 06:02 BobRay