PCF component on change event of date field we have to visible two field on the form like first lockup field and second is single line of text
It would be great we if we get PCF component on change event of date field we have to visible two field on the form like first lockup field and second is single line of text after that,
on save we have to get data of lookup and single line of text field and make bothe field hide and clear and on load both lookup and single line of text field get hide and cleared.
Answer
PCF components are not made for this kind of purpose. For example to implement the scenario you described is sufficient JavaScript (or maybe just Business Rules). If you don't know how to do it, you can look for help inside Dynamics Community Forums (https://community.dynamics.com/f) or find a person to implement it for you.
I close this thread
Hlello Guido,
Thank for reply,
I have achieved this same scenario using web resources using java script but what I want is build the same scenario using PCF code component so that I can use same code component into different environments for different forms fields.
The Problem statement is:
1.On change event of date field on the form we have to use the controller and make visible two fields those are lookup and single line of text field, and then
2.on save event we have to get data for lookup and single line of text field and make both field hide and clear, and after that
3.if we load that form (on load event) of form those both lookup and single line of text field should be disable.
you can put the field names as parameters of your javascript, so you can reuse your code to other scenarios and just changing the parameters after you attach the javascript to the onload and onchange event. My opinion is that building a PCF will not give you an advantage in your requirement
Hello Guido,
Thank you for the Reply
But that would be great if we create PCF code component for this scenario, so we can have code component in the same context as same of form that will improve the performs so please can we create.
Customer support service by UserEcho
PCF components are not made for this kind of purpose. For example to implement the scenario you described is sufficient JavaScript (or maybe just Business Rules). If you don't know how to do it, you can look for help inside Dynamics Community Forums (https://community.dynamics.com/f) or find a person to implement it for you.
I close this thread