Janise Dismuke
Posts: 0
Joined: Mon Apr 14, 2014 8:24 pm

How to set property on select box after clicking from a list?

When I click the 2nd item in the list, on the next page the local variable is not pushing to the (status) select box when page show. It is showing the status from the 1st item in list. When I click the 1st item on the list status pushes perfectly.

Image

For testing purpose, the label below the select box is pulling at the same time the select box is and is showing the correct information.

Image

How can I get the (status) select box to show the correct variable from the appropiate item in list on page show

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to set property on select box after clicking from a list?

Hi Janise -

As I understand, you can't set the needed value for selectmenue component?

Please look here:
:: http://stackoverflow.com/questions/83...

Janise Dismuke
Posts: 0
Joined: Mon Apr 14, 2014 8:24 pm

How to set property on select box after clicking from a list?

Would I put that in my run Javascript on page load?

Janise Dismuke
Posts: 0
Joined: Mon Apr 14, 2014 8:24 pm

How to set property on select box after clicking from a list?

Can I do it without putting in code?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to set property on select box after clicking from a list?

As you using value after transition to the next page, you'll need to save value from first page to local storage variable and update selectmenu component with it and refresh the component, all this can be done on page load event.

Return to “Issues”