cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerSäm
New Member

Two formulas behind one button, does not work - Power-Apps

Hello together,

 

I want to put two formulas behind a one button, but either it does not recognize the first one or the other one... what am I doing wrong?

 

Here the line:

Navigate(Output_Screen); Collect(CollectData;{Vorname: vorname_input.Text; Nachname: nachname_input.Text; Wohnort: wohnort_input.Text; Land: land_input.Text})

 

Or maybe:

 

Navigate(Output_Screen) && Collect(CollectData;{Vorname: vorname_input.Text; Nachname: nachname_input.Text; Wohnort: wohnort_input.Text; Land: land_input.Text})

 

Neither of them goes... I would be grateful for any help!

Best Regards

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

Taking a closer look your region must use different command separators.  I notice that you are separating the records using ';' where I would use ',' here in the US.  In that case the separation between commands should be ';;'.  Try this.

 

Collect(CollectData;{Vorname: vorname_input.Text; Nachname: nachname_input.Text; Wohnort: wohnort_input.Text; Land: land_input.Text});;Navigate(Output_Screen); 

That would also be another reason why your first attempt didn't work.

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
Pstork1
Dual Super User III
Dual Super User III

I think the problem is that you navigate away from the screen with the button before you do the second command.  Try this instead.

Collect(CollectData;{Vorname: vorname_input.Text; Nachname: nachname_input.Text; Wohnort: wohnort_input.Text; Land: land_input.Text});Navigate(Output_Screen); 


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thanks first of all for your quick reply. This is what happens when I enter it like you said: (The "Navigate" formula is not highlighted in blue).

 

image.png

Pstork1
Dual Super User III
Dual Super User III

Taking a closer look your region must use different command separators.  I notice that you are separating the records using ';' where I would use ',' here in the US.  In that case the separation between commands should be ';;'.  Try this.

 

Collect(CollectData;{Vorname: vorname_input.Text; Nachname: nachname_input.Text; Wohnort: wohnort_input.Text; Land: land_input.Text});;Navigate(Output_Screen); 

That would also be another reason why your first attempt didn't work.

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Thank you for your reply, that worked great, that was it. Thank you!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

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 the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (46,464)