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
Super User
Super User

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,444)