Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Presets on Listbox TVs #51

Open
GarretOverstreet opened this issue Jan 30, 2018 · 1 comment
Open

Setting Presets on Listbox TVs #51

GarretOverstreet opened this issue Jan 30, 2018 · 1 comment

Comments

@GarretOverstreet
Copy link

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.

@BobRay
Copy link
Owner

BobRay commented Feb 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants