All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Understanding the Select variable type

Jonathan Schofield 20 Feb 2012 16:11 question, complete

I've experimented with creating a Select variable but am confused.

In the main Low Variables interface (the one where content owners can change the variable data) the menu presents as a dropdown. What problem does that solve?



Isn't the idea to permit a content owner to manage the options in a list? In which case don't they need to be able to edit the rows in it, not choose from it?

Also...

When creating a Select variable, what is one supposed to do with the Variable Data field -- is it redundant?

Replies

  1. Low 20 Feb 2012 22:26

    Hi Jonathan,

    Variable Types are interfaces that help you set the value of a variable. The default type, textarea, is just a simple text field where you can fill in any type of data. Different variable types will help you set the value in different ways. The Select variable type lets you set the value using a drop down element, which you can pre-populate with different options. So, in this case, it's not meant to manage a list of (unknown) options. As I can see from your screenshot, PT List is a better option for that. Also, Low Variables 2.0+ has the native Table variable type, where you can manage multiple rows as well.

    The Variable Data field is there to set the initial value of the variable. If you leave it empty, the value will be empty upon creation. If you fill in (looking at your screenshot) "value2" for example, that will be the variable value upon creation, ie. "Option 2" will be selected.