
Hi folks,
I'm new to PCF controllers. I have build a PCF controller for single line text which will render a HTML and the HTML fields are defaulted with the values in the form. and then I'm calling an API.
after getting result I'm binding the data back to CRM fields. But after binding I'm getting error for exceeding the max character of the field.
I have changed the PCF controller to a multi-line text(max length) and but still after binding data I'm getting the same error.
Due to this error, I'm not able to save the record.
Any leads will be highly appreciated.
Thanks in advance
Hi Shivanshu,
The above screenshot show the UI of ONE PCF controls. Which means you have developed the PCF controls consisting three HTML fields as
1. Reference ID, Amount and Date Performed? and after saving your getting error? please confirm.
Also, how you are updating the field from PCF Control (i.e. Using WebAPI or PCF Method)?
As per my experience, For field level PCF control, I use the getoutput() method to bind data back to CRM field from PCF control.
i.e. Whenever we setup field level PCF control then we get one bind parameter in ControlMenifest.xml file and that parameter will be responsible for updating the field value.
Thanks,
pradeep.