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 / Is there a way to inse...
Power Apps
Unanswered

Is there a way to insert value of OOB AutoComplete pcf control programmatically (javascript)?

(0) ShareShare
ReportReport
Posted on by 6

Hi colleagues,

 

I have a challenge with OOB Autocomplete control. The one you can assign view and provide field for filtering.

 

The task:

To migrate legacy form design (9.1, before  deprecation "addOnClick" event) in Dynamics CE 9.1 to UCI I need to maintain a hierarchy of autocomplete fields.

Client sets  "low code" as a requirement and writing of PCF controls of my own is not an option for now.

 

The issue:

To keep it going with OOB I tried to insert with regular "setValue" which did work. No errors though.

Javascript (getValue) shows the value is actually there. But never displayed. 

 

My own investigation failed.

The issue seems not documented or I could not find it.

Is there some one who've been through such scenario?

 

Thanks in advance

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    HI  @mkalinov , 

     

    So you would like to use this OOB Control, right?

     

    image.png

     

    I made some tests, and it seems to work only sometimes. Pretty hard to find when it does work: the combination that I've found out: when the autocomplete was opened once, and the focus is changed outside the control. In that case you can set the "setValue" and it is reflected in the UI, Otherwise it happens exactly as you say: when you use getValue() you see what you just set by using setValue(), but the value is not shown in the UI, and the form is not dirty.

    Even worse, after an (auto)save, the control is like "new", doesn't know the options anymore and the game starts again.

     

    Unfortunately I can only confirm that it doesn't work for me;  I cannot come up with a better solution than writing an own PCF.

    I hope somebody else have a better solution for you...

     

    An own PCF wouldn't have the same customizing experience: the OOB seems to be a combination of both field and dataset PCF. I would like when the custom PCFs would be able to do that too.

     

    Kind regards,

    Diana

  • Micchael Profile Picture
    6 on at

    @DianaBirkelbach 

     

    Thanks for your response and efforts.

     

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
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard