Sid
Posts: 0
Joined: Fri May 16, 2014 10:12 am

Select component

Hi,

How to bind and execute 2 select elements.
on main page I put 2 select (list 1 & list 2) and 1 button (click).
Each list have 4 option to choose
If user choose option (a,b,c,d) from list 1 and they choose option (1,2,3,4)
from the list 2 (randomly), after that press click button it should be navigate to other pages (detail/answer).
How I do it? I've tried to copy code from tutorial or docs but is not working .
Thank you

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Select component

Hello Sid,

You can get selected value from select component with this code:

codevar value = Appery("mobileselectmenu_18").val(); /code

where "mobileselectmenu_18" is the name of select component

Sid
Posts: 0
Joined: Fri May 16, 2014 10:12 am

Select component

Hi Evgene,

I tried it but not working.
What i want is:

  1. If User user use select 1 (Name: list1) and choose one of their values (a,b,c,d)

  2. Then use select 2 (name list2) and chose one of their values (D,E,F,G).

  3. finally they click button (name: proceed) that navigate to other pages for detail or answer.
    There is some combination of select (list1+list2) values = (a+D) navigate to Pages 1, (a+E) to Pages 2 ,........... etc.

    what should i do ?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Select component

Hello Sid,

Tell us please, what did you try exactly? This code just allows you get selected value from select component:

codevar value = Appery("mobileselectmenu_18").val();/code

Sid
Posts: 0
Joined: Fri May 16, 2014 10:12 am

Select component

Hi Evgene,

I think i should not use select component for my 1st project, its to complicated for me. I change it with nested list it seem working.
Thanks anyway

Return to “Issues”