cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Måns
Frequent Visitor

Set variable and submitForm in same formula

Hi I need to set a variable "AnvID" (UserID in swedish) at the same time that I submit the "EditForm".

 

The scenario is that I´m adding a new user and I need the AnvID to add in some data to the new user in a related table. 

 

 

This is part of the Formula, everything works fine until I add in the "Set(anvID, DataCardValue8);" part.

AnvID.JPG

 

I´m using tables in excel for this POC 

 

Best regards 

Måns

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
DylanSimons
Resolver III
Resolver III

You are passing the entire DataCardValue8 control to the variable instead of its value.

 

Just change:

 Set(anvID, DataCardValue8);

to:

Set(anvID, DataCardValue8.Text);

View solution in original post

2 REPLIES 2
DylanSimons
Resolver III
Resolver III

You are passing the entire DataCardValue8 control to the variable instead of its value.

 

Just change:

 Set(anvID, DataCardValue8);

to:

Set(anvID, DataCardValue8.Text);

View solution in original post

I missed the stupid text. 😋

Thanks Buddy, worked lika a charm 🙏

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,365)