Select picklist not updating on set value

Wappler Version: 3.6.1
Operating System: Windows 10

Expected behavior

What do you think should happen?
When setting value for select picklist it should change to the correct row

Actual behavior

What actually happens?
The select statement isn't updating when setting the value for the select picklist. This seemed to have stop working after the new wappler update.

How to reproduce

Steps to reproduce

  1. Create a select picklist and populate it when values.
  2. Create an button where on click it will set the value for the select picklist above.
  3. Note that the picklist above does not update. This is some behavior that may have changed with this new update from wappler.

This is not a bug but normal behaviour. See https://www.w3schools.com/tags/tag_select.asp for more.

Thank you for the reference but Iā€™m still a little confused on how to update the select picklist off of a button click through wappler. I have a value of one of the picklist options I want to be selected, how would I go about that?

As the examples that are given in the page that I linked to, say: Normally a Select element is placed inside a form to collect user input.

<form action="/action_page.php">
  <label for="cars">Choose a car:</label>
  <select name="cars" id="cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="opel">Opel</option>
    <option value="audi">Audi</option>
  </select>
  <br><br>
  <input type="submit" value="Submit">
</form>

A form usually has an action page to which it goes when the form is submitted. This is where you determine what happens to the data once the form has been submitted.

Going back to your own example and adding a form, the canvas in Wappler looks like

After App, you see that I have added a variable to demonstrate this example. I have given the variable a name of varSelect and a value of 3.

Selecting the select statement, I have given it the value of varSelect, which, as far as the select statement is concerned is Option Three:

So, what I am trying to explain is that you must supply the option statement the value that the user has chosen for it to be displayed.

Interesting I thought bypassing the variable and just setting that value would work. Thank you so much for the demonstration.

1 Like