FMR: Running scripts or C# code from the custom toolbar button

G

G. Tarazi

Hi



I was adding a toolbar button to InfoPath, and I just realized that these buttons are very limited, all what I can do with the button is just use the execute action with couple of parameters.



I hope this is wrong; I want to run my custom code, but if this is not possible, consider it as an FMR.
 
S

Steve van Dongen [MSFT]

Hi

I was adding a toolbar button to InfoPath, and I just realized that these buttons are very limited, all what I can do with the button is just use the execute action with couple of parameters.

I hope this is wrong; I want to run my custom code, but if this is not possible, consider it as an FMR.

See the Structual Editing SDK sample on the InfoPath CD, specifically,
the ApplyDiscount button on the toolbar.

The manifest.xsf has this in the toolbar
<xsf:button name="RemoveDiscount" caption="No Discount"></xsf:button>

And this in the script
function RemoveDiscount::OnClick()
{
// Custom code
}

Regards,
Steve
 
G

G. Tarazi

Thank you

buttons are very limited, all what I can do with the button is just use the
execute action with couple of parameters.possible, consider it as an FMR.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top