BobRay/newspublisher

Setting Presets on Listbox TVs

GarretOverstreet opened this issue · 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.

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