cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Is there a way to add an action to move to a location within the same page/screen?

Help please!

 

I am super new to building and would like a really cool/slick app. I am using canvas apps, scroll able screen with 2 cards which works well but I would like a button that would work that if you click it, it would take you to that card on the screen ie. scroll down to that section on clicking. 

 

Most websites have this function select a menu option and it takes you to that section of the website, hope I am making sense! I don't want two screen as I want the user to have the function to scroll through or click to quickly reach the destination!

 

Thanks in advance!

Tash 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Is there a way to add an action to move to a location within the same page/screen?

Hi @NSWIFT92 ,

Do you want to navigate within a screen?

Firstly, please do not use Navigate function in your issue.

Navigate function could only navigate to different screens.

I suggest you use SetFocus function.

It could move input focus to a specific control.

Please notice that it could only move focus to an input control, like textinput, drop down,....

Control like label is not supported.

 

I assume that you have textinputs in each of the card.

You could set button1's OnSelect in card1:

SetFocus(TextInput2)

set button2's OnSelect in card2:

 

SetFocus(TextInput3)

..

 

 

Then if you click button1, you will jump to card2.

If you click button2, you will jump to card3.

 

 

Best regards,

 

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Is there a way to add an action to move to a location within the same page/screen?

Hi @NSWIFT92 ,

Do you want to navigate within a screen?

Firstly, please do not use Navigate function in your issue.

Navigate function could only navigate to different screens.

I suggest you use SetFocus function.

It could move input focus to a specific control.

Please notice that it could only move focus to an input control, like textinput, drop down,....

Control like label is not supported.

 

I assume that you have textinputs in each of the card.

You could set button1's OnSelect in card1:

SetFocus(TextInput2)

set button2's OnSelect in card2:

 

SetFocus(TextInput3)

..

 

 

Then if you click button1, you will jump to card2.

If you click button2, you will jump to card3.

 

 

Best regards,

 

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Regular Visitor

Re: Is there a way to add an action to move to a location within the same page/screen?

Thank you 🙂

Highlighted
Regular Visitor

Re: Is there a way to add an action to move to a location within the same page/screen?

@v-yutliu-msft I tried your approach but the screen doesn't actually 'jump' to the next card, for instance the card is below the visible screen it does't move the scroll bar to jump to the 2nd card?

 

Thanks

Tash

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,577)