Disable submit button in the toolbar

M

Marc Nemegeer

Hi,
How can I disable the submit button in the toolbar ? I'm using Infopath 2007
and forms services. For certain actions/people it needs to be enabled and for
others I need it disabled. How can I do this ? And, I do not want to create
my own button on the form :)

Regards,
Marc
 
M

Marc Nemegeer

Very little posts and reactions in this forum ? Is this not the right place
any more to ask this type of questions ?

Kind regards,
Marc
 
F

Frederik Van Lierde

Marc,

It is the right forum, also seveal post were discussing this before.

One Alex @ Microsoft proposed is the create rules when submitting.

The user will be able to click the Submit button, but the rules is
notvalid so nothing will happen or will just close the form.

How to add rules to Submit Button ?

1. Go to Tools -> Submit options
2. Select Allow users to submit the form
3. Select Perform custom action using rules
4. Click the rules button
5. Create the rule when to submit and add the action(s) ex. Submit
using a data connection
6. Create the rule not to submit and add the action(s) ex. Close the
form

Frederik Van Lierde
http://BlueInfoPath.wordpress.com | http://blog.SilverSandsAssociates.com

Do you follow us already http://Twitter.com/SilverSands_IT
 
M

Marc Nemegeer

Frederic,
Agree, this is the solution I implemented. But to have a better user
experience I am looking to disable the button.

Let's say I was looking for a solution like
CommandBarControl commandBarsFindControl =
(CommandBarControl)commandBars.InvokeByName(
"FindControl", // property
MethodFlags,
args2, // arguments
null); // Culture
commandBarsFindControl.Enabled = false;[/code:1:6d1f993f7f]

which is valid for Infopath 2003. Still have to check if I can do the same
things using 2007 and if this will work using forms services.

Regards,
Marc
 

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