Leslie McPherson
Posts: 0
Joined: Thu Apr 03, 2014 2:15 pm

Using Select Menu to Open New Pages

I have minimal coding knowledge and am trying to use the select menu options to open new pages. I read the "explanation" that is already here regarding this. I need a bit more help with this, as I am not a coder and am using appery for the "drag and drop" features that it has advertised. I may be able to do a little bit of coding, however, if I am told where to insert the code. Thank you so much for your help.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Using Select Menu to Open New Pages

Hello!
Could you describe in more details what are you going to do?
On select change navigate to a page chosen in Select, or choose page in Select and click button to navigate to a new page?
What explanation are you referring to?

Leslie McPherson
Posts: 0
Joined: Thu Apr 03, 2014 2:15 pm

Using Select Menu to Open New Pages

What I would like to do is have each of the choices under the select button open to different pages. For example, My Select button is titled "Examinations". The choices are Abdomen, Chest, Lungs, etc. I want the user to be able to click "Abdomen", and be directed to the Abdomen page.

The explanation I am referring to is an explanation provided last year sometime, but it uses coding, which I am unfamiliar with. I'll try to find the link.

Leslie McPherson
Posts: 0
Joined: Thu Apr 03, 2014 2:15 pm

Using Select Menu to Open New Pages

What I would like to do is have each of the choices under the select button open to different pages. For example, My Select button is titled "Examinations". The choices are Abdomen, Chest, Lungs, etc. I want the user to be able to click "Abdomen", and be directed to the Abdomen page.

The explanation I am referring to is an explanation provided last year sometime, but it uses coding, which I am unfamiliar with. The link is below

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Using Select Menu to Open New Pages

Hi Leslie,

Please follow the steps below:

For your select component on "Value change" Event select "Run JavaScript" action with the next code:
pre

var value = this.value;

console.log(value);

if(value == "Veni")
navigateTo("Screen28");

if(value == "Vidi")
navigateTo("Screen27");

if(value == "Vici")
navigateTo("Screen26");/pre

Note: "Screen28" and others are page names. They should be replaced with yours.

"Veni" and the rest are option values.

Leslie McPherson
Posts: 0
Joined: Thu Apr 03, 2014 2:15 pm

Using Select Menu to Open New Pages

That is exactly what I needed! Thank you!!!!

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

Using Select Menu to Open New Pages

Hello!
I have a select menu with visible "untick", because I want to open the menu with an image on the header.

Im using this JS on click event of the image:

Appery("select1").selectmenu('open');

but the menu is not open...Is it possible to open the menu without clicking on it?

Regards

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Using Select Menu to Open New Pages

Hello!

We tested and it works for us. Please check errors in console, perhaps there is incorrect selector.

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

Using Select Menu to Open New Pages

Hello, still not working, I doublechecked the selector name, and there ́s no errors in console..

do you notice any problem in this SS?

Image

Return to “Issues”