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 Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (2,205)