cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Values won't pass to new form

Hello,

 

I have two forms on my PowerApp, New Risk Assessment and New Risk (multiple risks can be added to one risk assessment session). However, I am having difficulty passing the Risk Assessment ID and Title values to the New Risk form. 

 

Here is the code I had been using which worked last week but now whenever I navigate to a new page the Risk Assessment Title field is blank. 

 

titlecodeproblem.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Values won't pass to new form

@Anonymous 

Try changing your formula to the following:

Navigate('New Risk', Fade, {DataCardValue1: DataCardValue134.Text})

This will create and set a context variable on the 'New Risk' screen with the text value from the DataCardValue134 control.

If you are trying to set another DataCardValue1 control on the 'New Risk' screen, then this process will not work.  Instead, consider setting the Default property of your DataCard to the context variable.  Or better yet, skip the variable and just set the Default property to DataCardValue134.Text

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: Values won't pass to new form

@Anonymous 

Try changing your formula to the following:

Navigate('New Risk', Fade, {DataCardValue1: DataCardValue134.Text})

This will create and set a context variable on the 'New Risk' screen with the text value from the DataCardValue134 control.

If you are trying to set another DataCardValue1 control on the 'New Risk' screen, then this process will not work.  Instead, consider setting the Default property of your DataCard to the context variable.  Or better yet, skip the variable and just set the Default property to DataCardValue134.Text

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Anonymous
Not applicable

Re: Values won't pass to new form

you need to add "Text" as DataCardValue134.Text to pass the value.

 

Thanks.

Highlighted
Community Support
Community Support

Re: Values won't pass to new form

HI @Anonymous ,

Could you please share a bit more about the DataCardValue134 within your formula?

Does the DataCardValue134 store the Risk Assessment Title value?

 

Based on the formula that you provided, I think there is something wrong with it. Please consider modify your formula as below:

Navigate('New Risk', Fade, {DataCardValue1: DataCardValue134.Text})

Note: The DataCardValue134 represents a control rather than a Text value within your app.

 

In addition, as an alternative solution, you could also consider take a try to set the Risk Assessment Title value into a global variable, then you could use this global variable value in your app everywhere.

Modify your formula as below (set the OnSelect property of the "+" icon to following😞

Set(CurrentRiskAssessmentTitle, DataCardValue134.Text);
Navigate('New Risk', Fade)

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Anonymous
Not applicable

Re: Values won't pass to new form

The navigate formula still doesn't work but setting the default value did! Thank you so much!

Highlighted
Anonymous
Not applicable

Re: Values won't pass to new form

Hi @RandyHayes ,

 

This solution had been working great for me however, I just realized that the passed ID value has not been saving to SharePoint. Any idea on what to do?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

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

Top Solution Authors
Top Kudoed Authors
Users online (7,588)