Notifications
Announcements
Hi,
I'm trying to create a PCF control, and I have a field from type Floating Point Number, I set the type of my field as FP, but that field (address1_longitude) is not showing in the options to bind it, any ideas
From memory address fields are not accessible by PCF components due to the way address fields work in the background .
Hi @Aboodhamwi95 ,
You could vote the Idea: https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Enable-binding-to-OOB-Address-Fields/idi-p/302387
There is also a workarround to it. It might work in some cases.
Best regards,
Diana
Check this workaround to enable fields fpr PCF control you work on - https://www.magnetismsolutions.com/blog/jaredjohnson/2019/07/04/binding-to-address-fields-in-a-pcf-control
Hi @a33ik ,
Thanks for this solution, I update the form XML as requested, but the attribute is not being bonded in the code, this is my XML
<Latitude type="FP">address1_latitude</Latitude> <Longitude type="FP">address1_longitude</Longitude>
you can notice that the attributes object is empty
Have you placed attributes on the form if you have not - put attributes to the form and make them hidden.
Can you please post your Manifest File and piece of customizations.xml where you configure your control - I mean full control - not only longitude/latitude chunk?
this is the form XML
<controlDescription forControl="{a33744be-9e66-d04c-9d14-318eb0679c35}"> <customControl id="{4273EDBD-AC1D-40D3-9FB2-095C621B552D}"> <parameters> <datafieldname>msdyn_externalaccountid</datafieldname> </parameters> </customControl> <customControl name="ha_hamwi.GoogleMapLocation" formFactor="0"> <parameters> <Field>msdyn_externalaccountid</Field> <Latitude type="FP">address1_latitude</Latitude> <Longitude type="FP">address1_longitude</Longitude> <GoogleAPIKey static="true" type="SingleLine.Text">asdasd</GoogleAPIKey> <msinternal.isvisibleinmocaonly static="true">true</msinternal.isvisibleinmocaonly> </parameters> </customControl> <customControl name="ha_hamwi.GoogleMapLocation" formFactor="1"> <parameters> <Field>msdyn_externalaccountid</Field> <Latitude type="FP">address1_latitude</Latitude> <Longitude type="FP">address1_longitude</Longitude> <GoogleAPIKey static="true" type="SingleLine.Text">asdasd</GoogleAPIKey> <msinternal.isvisibleinmocaonly static="true">true</msinternal.isvisibleinmocaonly> </parameters> </customControl> <customControl name="ha_hamwi.GoogleMapLocation" formFactor="2"> <parameters> <Field>msdyn_externalaccountid</Field> <Latitude type="FP">address1_latitude</Latitude> <Longitude type="FP">address1_longitude</Longitude> <GoogleAPIKey static="true" type="SingleLine.Text">asdasd</GoogleAPIKey> <msinternal.isvisibleinmocaonly static="true">true</msinternal.isvisibleinmocaonly> </parameters> </customControl> </controlDescription>
This is the control manifest
<?xml version="1.0" encoding="utf-8" ?>
Hello,
That looks good for me. What is the type of msdyn_externalaccountid field? Also what's the type of the form you want to use your control on?
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 765 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 272