cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Power Apps Staff HemantG
Power Apps Staff

Re: PCF - Can you load native JS into the controls themselves (i.e. The CRM Xrm api)?


@Anonymous wrote:

It sounds like the PCF is not the right fit for a scenario like this.


Lets try one more time. Can you explain what is the end user expereince expected, possibly with some mock screens if that helps. We can then see whats the best fit. 

Anonymous
Not applicable

Re: PCF - Can you load native JS into the controls themselves (i.e. The CRM Xrm api)?

 

@HemantGhopfully the below screenshot will provide some extra clearity. We want to put a PCF on the "Business Phone", so that it can be formated. However, based on the country. We want the format to change.

 

Phone Formatting Explanation.png

Power Apps Staff HemantG
Power Apps Staff

Re: PCF - Can you load native JS into the controls themselves (i.e. The CRM Xrm api)?

Curently there is a restriction that the composite fields cannot be configured to the custom control so address-country is not available. 

STEP1: 

What you can do is create a placeholder address field for country and add a PBL to set the value of this fields base on the country in the address. Hide the field on the form so that the user does not sees two addresses. 

OR

use the placeholder address - country field on the form and and add a sync workflow to write this value into actual address-country on form save.  

 

STEP2: 

Add additional input property to the Business phone field which is of type text and configure it to the placeholder address feild. 

 

STEP3: 

The additional property is now available in the business phone and control can access it to know what country is in the form. 

 

HTH,

Hemant

Anonymous
Not applicable

Re: PCF - Can you load native JS into the controls themselves (i.e. The CRM Xrm api)?

@HemantG ,

 

I appreciate the options and It looks like there are ways to kind of do it. However at the moment, it is forcing a fit. Maybe down the road it will open up more.

Power Apps Staff HemantG
Power Apps Staff

Re: PCF - Can you load native JS into the controls themselves (i.e. The CRM Xrm api)?

Had a call with PM for composite control this morning. The issue is being tracked.


Thanks for your patience.
Anonymous
Not applicable

Re: PCF - Can you load native JS into the controls themselves (i.e. The CRM Xrm api)?

Does that mean, at some point down the road the PCF might be a better fit for this?

Highlighted
Power Apps Staff HemantG
Power Apps Staff

Re: PCF - Can you load native JS into the controls themselves (i.e. The CRM Xrm api)?

You can build the control today and when the address fields are available eventually you can just use them for configuration. There is no other way to replace the field in the system .

Hemant

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Users online (7,370)