Page 1 of 1

Prompt user input - Plugin

PostPosted: Tue Jan 21, 2020 5:08 pm
by Riyaz
Hi There

Is there a possibility where we can have a button in the SO ribbon, clicking on which we prompt a custom form to the user with a label and a textbox, and get the inputted value in the plugin.

Re: Prompt user input - Plugin  Topic is solved

PostPosted: Tue Jan 21, 2020 5:18 pm
by Mike.Sheen
Riyaz wrote:Hi There

Is there a possibility where we can have a button in the SO ribbon, clicking on which we prompt a custom form to the user with a label and a textbox, and get the inputted value in the plugin.


There's a number of examples of adding a button to a ribbon - an example which we ship with as sample plugins is the Sales Order Create Purchase Orders plugin.

That will show how to add the button, and handle the button click - from there you can look at this example plugin which displays a custom dialog with 2 labels and 2 textboxes for the user to enter credentials in - that should serve as a fairly close guide to what you are asking.