MscrmTools / PCF-Controls

Controls using PowerApps Components Framework
GNU General Public License v3.0
83 stars 42 forks source link

[Question] How to use the Action Button #158

Closed limyandi closed 12 months ago

limyandi commented 12 months ago

Hi,

How do I use the Action Button? I already created a script and load the script that contains the OnChange function

image

I have also bind the button with the onChange event

image image

But it is still not triggering the onChange function at all, I have put in a breakpoint as well but nothing ever happens. Your help is much appreciated, thank you.

MscrmTools commented 12 months ago

Everything looks correct and the onChange should be triggered. What can happen is the code does nothing because the value of the sample is "Run this!" and you button says "Copy Postal Code". So you should change that. Please note that the PCF configuration allows to pass an ID instead of the button label. This can be more convenient.

limyandi commented 12 months ago

It's working now with the ID, thank you.