web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Change default propert...
Power Apps
Unanswered

Change default property of text entry field by button

(0) ShareShare
ReportReport
Posted on by 7

Hello Community, 

 

image001.png

I hope anyone can help: 

I have the text entry field "datacardvalue2" which I fill with the result of a form processor. 
I do this by using "FormProcessor1.Results.Materialnummer.Value" in the Default property.

I now want a button that clears the "datacardvalue2" (e.g. in case of wrong recognition). 

I tested a Button with onselect property "Reset(DataCardValue2)". With this the field does not really clear but just changes to the default property that depends on the result of form processor. So to clarify: Form processor identifies "9 480 230-05", I change to 123, press the button and again it is "9 480 230-05" instead of empty.

Any ideas? Can I change default property with a button to empty? Or is there a better option the text entry field with the result from form recognizer that does not affect the "Default" Value?

 

I am kind of a newbie so the solution might is pretty easy but I cannot find any 😞

 

Regards

Anne

Categories:
  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @anne1111 ,

    Set a Variable on the button

    UpdateContext({varReset: true})

    and also at screen OnVisible (or anywhere else you need to reset this)

    UpdateContext({varReset: false})

    then the Default of the control

    If(
     !varReset,
     "FormProcessor1.Results.Materialnummer.Value,
     Blank()
    )

    then the Reset of the Control

    varReset

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • anne1111 Profile Picture
    7 on at

    @WarrenBelz: 

    I tested and it works but once I then try to use Formprocessor again it stays empty as the button is still activated. 

    Is there maybe a way to clear the Results of formprocessor? This would be the easist and will also solve my Problem that after clearform (for next entry) the Formprocessor is still filled with the previous data.

    it Tested a lot but nothing works 

  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    @anne1111 ,

    If you run this at any time

    UpdateContext({varReset: false});
    UpdateContext({varReset: true})

    it will clear the box

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • anne1111 Profile Picture
    7 on at

    @WarrenBelz:

    Unfortunately I cannot really follow:(

    And I still will need that the Form processor is cleared once I reset the Form sind start with an new App entry. 
    Can you explain how to clear the Formprocessor (Image and results). This would lead also to an empty Field then and would be the best Option.

  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    @anne1111 ,

    What exactly is Form processor?

  • anne1111 Profile Picture
    7 on at

    @WarrenBelz: I mean the AI Builder component „Formprocessor“.

    I want to reset this after using it and recognition.

  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    @anne1111 ,

    Sorry I will drop out here - I do not use this process.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard