I have a Power Apps form. When I click the submit button (outside the form), I need to reset a date control that is within the form. How can I do this?
If(
!IsBlank(controlName),
Set(
isReset,
!isReset
)
)
try this formula it will only set the reset true if your control is blank or emplt just change the name of control inside isBlank with .Value
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
@anandm08 never mind, I figured it out! Thanks for your help!
@anandm08 thanks so much for your reply! If I understand correctly, this will reset the control to it's default value, correct? How do I ensure that if the field already contains a value, it does not reset to the default?
hey @StaceyGriffeth ,
put this formula in button onSelect:
Set(isReset,!isReset)
put this in Reset property of the date control:
isReset
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
WarrenBelz
110
Most Valuable Professional
MS.Ragavendar
77
stampcoin
52