cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Sunayana8
Level: Powered On

Take input from a user while adding a pcf component

I have a PCF Component. I need to ask the user to enter the minimum number of characters that are required in the field. This must take place while adding the PCF Component to the field.

1 ACCEPTED SOLUTION

Accepted Solutions
GuidoPreite
Level: Powered On

Re: Take input from a user while adding a pcf component

you can add an additional property to the manifest and after read the property value inside your logic.

you can check the source code of my PCF control

https://github.com/GuidoPreite/PCF_CustomUrlControl/tree/master/CustomUrlControl

View solution in original post

6 REPLIES 6
GuidoPreite
Level: Powered On

Re: Take input from a user while adding a pcf component

you can add an additional property to the manifest and after read the property value inside your logic.

you can check the source code of my PCF control

https://github.com/GuidoPreite/PCF_CustomUrlControl/tree/master/CustomUrlControl

View solution in original post

Sunayana8
Level: Powered On

Re: Take input from a user while adding a pcf component

Could you please include the manifest file in your code?

GuidoPreite
Level: Powered On

Re: Take input from a user while adding a pcf component

Sunayana8
Level: Powered On

Re: Take input from a user while adding a pcf component

I wanted the ManifestTypes.d.ts file. Could you please upload that?

GuidoPreite
Level: Powered On

Re: Take input from a user while adding a pcf component

this is the content of the ManifestTypes.d.ts, however it get generated by the pcf tooling

 

/*
*This is auto generated from the ControlManifest.Input.xml file
*/

// Define IInputs and IOutputs Type. They should match with ControlManifest.
export interface IInputs {
value: ComponentFramework.PropertyTypes.Property;
placeholder: ComponentFramework.PropertyTypes.StringProperty;
value2?: ComponentFramework.PropertyTypes.Property;
placeholder2?: ComponentFramework.PropertyTypes.StringProperty;
value3?: ComponentFramework.PropertyTypes.Property;
placeholder3?: ComponentFramework.PropertyTypes.StringProperty;
urlLink: ComponentFramework.PropertyTypes.StringProperty;
urlText?: ComponentFramework.PropertyTypes.StringProperty;
urlCSS?: ComponentFramework.PropertyTypes.StringProperty;
icon?: ComponentFramework.PropertyTypes.StringProperty;
iconStyle?: ComponentFramework.PropertyTypes.StringProperty;
}
export interface IOutputs {
value?: any;
value2?: any;
value3?: any;
}

Sunayana8
Level: Powered On

Re: Take input from a user while adding a pcf component

Thankyou!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 159 members 5,464 guests
Please welcome our newest community members: