cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Danny_L
Helper III
Helper III

Need help clearing or resetting a text input field's default

Hey everyone,

 

I have two buttons, Start and Stop that when pressed enters the current date/time in the Start Time and End Time fields. My default for both Start Time and End Time fields are the variables that were set to accomplish this. Is there a way to clear these out when I submit my form? I've tried reset form and all but these fields get reset.

 

 

Danny_L_0-1625163116882.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Danny_L
Helper III
Helper III

I found the answer from another post. I had to use Set(myvariable, Blank()) on select of the button.. This worked

View solution in original post

7 REPLIES 7
cds
Impactful Individual
Impactful Individual

form.onsucess = Concurrent(Reset(datacardvalue1), Reset(datacardvalue2))
or Reset(datacardvalue1); Reset(datacardvalue2)

I get this error:

 

Danny_L_0-1625175491681.png

 

zmorek
Power Participant
Power Participant

Thanks for the suggestion. I tried that and it still did not reset. 

cds
Impactful Individual
Impactful Individual

what is datacardvalue8? if it is set to a variable, try setting variable (instead of resetting field)

 

Danny_L
Helper III
Helper III

I get this:

 

Danny_L_0-1625605153586.png

 

Danny_L
Helper III
Helper III

I found the answer from another post. I had to use Set(myvariable, Blank()) on select of the button.. This worked

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 (1,994)