cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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
Highlighted
Advocate I
Advocate I

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
Highlighted
Advocate I
Advocate I

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

Highlighted
Helper I
Helper I

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

Could you please include the manifest file in your code?

Highlighted
Advocate I
Advocate I

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

Highlighted
Helper I
Helper I

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

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

Highlighted
Advocate I
Advocate I

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;
}

Highlighted
Helper I
Helper I

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

Thankyou!

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (3,672)