cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NurNida
Helper II
Helper II

status field setting.

1. Default value for field status is Draft. 

2. When Submit the value should change to Submitted

3. When Copy Document, new copied form status is Draft.

 

How to set this? I try to avoid using variable in the status field as it keep on refresh. 

 

t2.JPG

 

t1.JPG

1 ACCEPTED SOLUTION

Accepted Solutions

I tried  but still not working. 

 

Somehow, i used patch in submit button and it works accordingly. 

 

Patch(
'Technical Request',
Defaults('Technical Request'),
Form1.Updates,
{Status:"Submitted"}
);

SubmitForm(Form1);
Navigate(IntroScreen,ScreenTransition.Fade);

View solution in original post

2 REPLIES 2
Drrickryp
Super User II
Super User II

@NurNida 

For one thing, take the UpdateContext() out of the SubmitForm() sequence and put it in the OnSuccess property of the form.  You dont't want to execute the UpdateContext() if the form doesn't successfully submit. 

I tried  but still not working. 

 

Somehow, i used patch in submit button and it works accordingly. 

 

Patch(
'Technical Request',
Defaults('Technical Request'),
Form1.Updates,
{Status:"Submitted"}
);

SubmitForm(Form1);
Navigate(IntroScreen,ScreenTransition.Fade);

View solution in original post

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,674)