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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Tab autocomplete wipes...
Power Apps
Unanswered

Tab autocomplete wipes out chunks of formula

(1) ShareShare
ReportReport
Posted on by 171

I have noticed this happens quite a lot while editing formulae.

 

I have a formula in which I am adding an If() to test something before performing the next action.

The formula is underlined because I have split the ForAll() function but not yet completed all required parameters of the If().

For me it is normal to first code the working formula then add validation If()s later once i know the base formula works.

 Capture.PNG

While writing a datasource I press TAB to autocomplete the datasource name.

Instead of filling in the text offered it removes the rest of the formula and tries to force some of the parameters of the other functions into the required parameters of the LookUp function I am currently writing.

Capture2.PNG

What is the expected behavoiur of autocomplete when editing in a formula that is incomplete within another function?

In most coding environments autocomplete usualy only operates on text adjoining the cursor and has no effect beyond the next white space.

 

Also, is there a to use TAB for indentation of code?

Currently it will always insert an autocomplete even after CTRL ENTER on a blank new line.

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi SimonMeadows,

     

    I can reproduce it just for one time, when using Tab to edit a formula that is incomplete within another function, the formulas after the cursor are removed. While the next time I try the same action, this issue doesn’t occur.

     

    I am always using Enter key to automatically enter values into the formula. I never occur this kind of issue on my side when using Enter key.

     

    Best regards,
    Mabel Mao

  • Meneghino Profile Picture
    6,949 on at

    Hi both, I have come across the same issue and have lost bits of formula.

    Also, there seems no easy recovery from this, since pressing Esc will not restore the formula to what it was before starting editing, I believe.

  • Michael Profile Picture
    Microsoft Employee on at

    Thanks for reporting the issue, @SimonMeadows. After digging into the code, it seems that the issue is the tokenization when the name is not closed with a ' character. As a workaround, you can add the closing ' character before accepting the suggestion. I will be working on a fix that will at least allow the tokenizer to also recognize a new line as the end of the token.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard