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 / Reset fields values po...
Power Apps
Answered

Reset fields values populated using custom connector

(0) ShareShare
ReportReport
Posted on by 234

Hi,

I am using a custom connector and am able to successfully pull data using this connector.

I have difficulty clearing the values on the canvas app using the Reset function.

I have tried to set a variable for a field as follows in OnSelect

Set (
    varVehicle,
    ALFA_MILES.GetLoanInfo({loanid: LoanTxt.Text}).ModelDescription
);
And then referencing Default = varvehicle.
Then I have a 'Cancel' button that will clear the fields using the formula
Set(
    varDisReset,
    true
);
Set(
    varDisReset,
    false
);
Set(
varVehicle, Blank());
 
 
Categories:
  • Verified answer
    Sunil Kumar Pashikanti Profile Picture
    2,338 Super User 2026 Season 2 on at

    Can you try like below:

     

    Reset(LoanTxt);
    Set(varDisReset, false); // Reset the flag variable Set(varVehicle, Blank()); // Clear the vehicle variable

     

    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.

  • RVoller Profile Picture
    234 on at

    Thank you @SunilPashikanti, I am able to reset the values on the canvas app.

     

    However, for some reason the data are not autopopulating on the text input fields in the app.

    Example:

    For the Field=VehicleTxt.Text, I have set

    Default=varVehicle

    OnSelect=

    Set (
        varVehicle,
        If(!IsBlank(LoanTxt.Text), ALFA_MILES.GetLoanInfo({loanid: LoanTxt.Text}).ModelDescription
    ));
    I have to click on the text input field for the data to display.  It does not automatically display the data automatically.
     
    If however, I have the same field with:
    Default=ALFA_MILES.GetLoanInfo({loanid:LoanTxt.Text}).ModelDescription  
    then the data are displayed automatically.
     
     
     
     
  • Sunil Kumar Pashikanti Profile Picture
    2,338 Super User 2026 Season 2 on at

    Instead of setting the value to varVehicle, can you directly set the default value for VehicleTxt?

     

    VehicleTxt.Default = ALFA_MILES.GetLoanInfo({loanid:LoanTxt.Text}).ModelDescription;

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 332 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 302 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 292

Last 30 days Overall leaderboard