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 176

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:
I have the same question (0)
  • Verified answer
    Sunil Kumar Pashikanti Profile Picture
    1,077 Moderator 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
    176 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
    1,077 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 538 Most Valuable Professional

#2
11manish Profile Picture

11manish 307

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard