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
Community Champion
Community Champion

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 Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,148)