cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ashok2
Level: Powered On

Two gallery single edit form

I have two gallery with single edit form on submit of edit form on success I want to navigate to gallery from where I have navigate to edit form, how to set up a variable for navigation on success
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Two gallery single edit form

Hi,
Are the two galleries on different screens? If so, on OnSelect of Gallery1, you can set a variable with something like this:
Set(navVar, "Screen1")
And then for Gallery2,
Set(navVar, "Screen2")

Then on the OnSuccess of your form, you can set this:
If(navVar="Screen1", Navigate(Screen1), If(navVar="Screen2", Navigate(Screen2))

Let me know if this helps.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

View solution in original post

16 REPLIES 16
Highlighted
Super User
Super User

Re: Two gallery single edit form

Hi,
Are the two galleries on different screens? If so, on OnSelect of Gallery1, you can set a variable with something like this:
Set(navVar, "Screen1")
And then for Gallery2,
Set(navVar, "Screen2")

Then on the OnSuccess of your form, you can set this:
If(navVar="Screen1", Navigate(Screen1), If(navVar="Screen2", Navigate(Screen2))

Let me know if this helps.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

View solution in original post

Ashok2
Level: Powered On

Re: Two gallery single edit form

My edit form have three datacards with threedatacards have three edit forms so do i ave to write on each form success 

 

i am doing below udpates on submission

Patch(SPList, SelectedItem, Form_1.Updates, Form_2.Updates, Form_3.Updates)

 

Super User
Super User

Re: Two gallery single edit form

Ok. But wasnt your question about how to navigate back to the correct gallery from which you came to the form?

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com
Ashok2
Level: Powered On

Re: Two gallery single edit form

Yes i done in same way what you have suggessted but its not working , so i am checking do i need to writte this for all three form success in my edit form 

Super User
Super User

Re: Two gallery single edit form

If there is only one form, there should be only one OnSuccess property.

I am not sure I understand "threedatacards have three edit forms".

May be i am missing something?

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com
Ashok2
Level: Powered On

Re: Two gallery single edit form

I am trying to explain 

 

I have one scroablle screen , which have three datacards ,each datacard have one edit form in it which will be visible as per gallery from where user navigating ,

 

First Fallery will show only one datacard within which user can see single edit form and update it so here i can write on single success  ,second gallery will show all three datacards so here use can update all three sections 

Super User
Super User

Re: Two gallery single edit form

Ok but are the galleries and forms on the same screen? Also, are you using a button to submit the forms? If yes, you can paste the above suggested formula in the OnSelect property of the button.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com
Ashok2
Level: Powered On

Re: Two gallery single edit form

gallery and form are in different screen , if i do  on select  then even if my form failed validation it will navigate ,failing validation means not filling mandatory fileds.

Super User
Super User

Re: Two gallery single edit form

Did you say in some cases only 1 form is submitted and in some cases all 3?

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,080)