.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Custom Submit button rule breaks down in the middle of the actions

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :SharePoint

I have an infopath form that is published to a SharePoint library.  After the form is filled out, the user clicks a custom "Submit" button which has a rule with the following actions: 1) submit to main connection (database table), 2) submit to connection (SharePoint library - which starts an approval workflow in SharePoint), 3) thank-you message, and 4) close form without prompt.

99% of the time, all works well with form data getting submitted to database table, and also to the SharePoint library (which triggers the approval workflow).  1% of the time, when my custom submit button gets clicked, only the first rule action performs (i.e., data is submitted to main database connection), but the process stops at the action to submit to the SharePoint list.

I have checked and triple-checked the actions in the submit button rule, and they appear to be correct - and, in fact, behave correctly 99% of the time.  It's that 1% when the rule breaks at the point of submitting to SharePoint library that has me crazy.  This occurs only sporadically with different users -- users who it works correctly for most of the time.

I also have a form field I created called "DupChecker" that looks in the database table to see if the exact record exists, and if it does, it will not allow the user to submit it again.  So when the use

View Complete Post

More Related Resource Links

Is it possible to add a custom menu group to the Site Actions button?


I know I can use a Custom Action to add a new menu item to my Site Actions button .

Is it possible for me to add a new menu group to the Site Actions button? For example, like the OOB Site Settings menu group, which then extends out to offer additional items such as "Modify All Site Settings" etc.

how to specify file name and close the info path form on custom submit button?

i have submit button in the form once i click it must ask to enter the file name and once i given it it must close the particular browser tab.

how to specify file name and close the info path form on custom submit button?

i have submit button in the form once i click it must ask to enter the file name and once i given it it must close the particular browser tab.

Smart Tags: Simplify UI Development with Custom Designer Actions in Visual Studio


Windows Forms 2.0 components expose smart tags by utilizing Designer Actions. By taking advantage of this feature, you can add smart tags to your own custom components to make setting their properties and other actions much easier and developer-friendly.

Michael Weinhardt

MSDN Magazine July 2005

Custom Button (Sharepoint 2007)




I have a relatively small project to build a class sign up portal for my company.  I am about 90% done and this is one I have so far:


1 custom list off all classes called “Classes” (Class name, Data, teacher, etc, ..)

1 custom list of employees who signed up called “Signup sheet” (Employee Name, Class  name)


What I want is when you display a class information from the “Classes” list, I want a button on the bottom called “sign up for this class” that brings me to the new item page of “Signup sheet” with the class already filled in for you.  Seems easy on paper but I have been trying to do this for weeks.


I am ok with share point designer and am open to any suggestions.


Thanks in advanced,


Infopath button click event in custom workflow code.


Hi All,

I have designed the infopath form(Init) and integrated with my state machine workflow. i want to access button click event (designed in Infopath form) in my workflow code.

Can you help me.




Button in a form that does not submit


I've been trying to figure this out all afternoon but my google-fu seems to be failing me. I'm setting up a page with a fairly large form, which has one field that is going to require some kind of popup page that will allow the user to perform a lookup. At the moment I'm only prototyping the page so I'm actually only attempting to a the button up to fire an alert when the button is clicked instead of generating a lookup screen. However it seems that no matter what I do the button causes the form to submit.

I remember one of the very first ASP .NET beginner videos I ever watched went through configuring a button to perform actions without submitting, but I can't seem to figure out which one it was.

Infopath form using Visual Studio - How to bind repeating table on submit button click ?


Hello friends,

   I have created infopath form using Visual Studio 2008

Form have 3 dropdowns and one repeating table which is bound by Datasource ( List from sharepoint ).

whenever i select appropritae values from drop down, Repeating table gets bound as datasource for dropdown and repeating table are same.

I have done conditional formating for repeating table using repeating table properties.


My Question:


Now i included one submit button and i want when i click submit button it will check DropDown Values and if appropriate record matching these values found it will fill repeating table

How i achive this ? as i dont find how to bind repeating table on submit button.

Please help if anyone have answer.


Thanks and Regards,


Kapil Bhosale.




Web Form breaks after using the browser's back button

I have a web form that allows a user to put some data in a textbox and click a button to do a search on that data.  It opens up a Sql Server Reporting Services report using the data they entered on the previous page.  If they use the browser's back button to go back and enter some different criteria to search on, the buttons don't work anymore. Any ideas or suggestions on what would cause this?   Thanks! 

Custom actions and URL tokens when working with the Ribbon

I'm trying to add a new item to the Ribbon using a custom action in a VS SP2010 project. The new action shows up where we want it but the problem we are facing is that tokens like {ItemId} or {SelectedItemId} are not parsed when used in the CommandAction attribute. I would like to use these tokens and construct a URL pointing to an application page we've created. In the same way one can do using UrlAction when adding custom actions to the ECB menu (this is working fine in our project). The custom action below simply prints out different tokens. When run it seems like the tokens {SiteUrl},{SelectedListId} and {SelectedItemId}are parsed but for me both SelectedListId and SelectedItemId are null. Are there any other tokens that can be user or is there a better way to get hold of the item and list for the context? <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="{1f2da003-2069-4d4a-8fc5-1deeb98ecdda}" Location="CommandUI.Ribbon" Sequence="20"> <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.ListForm.Display.Manage.Controls._children"> <Button Id="{ca157255-5ef3-4f1c-bcb6-6ff5ff7610fe}" Command="{7887e42e-

Redirecting to custom page while clicking on the user/group browse button

Hi, i have created a custom visual web part in visual studio 2010 and i deployed it into sharepoint site by creating a new page in my site. The custom page gets the data of users/groups from database and pass the users to the people picker in sharepoint.Here my question i have a document library where we upload document and get the users page popup that consists of people picker and a user/group browse button.when i click on the (book image button)browse button it will redirect to the user and group search page but here i need to replace my custom  user/group search page with the default one so please help me how to redirect to the custom page by clicking on the user/group browse button,and i need to pass the selected users to the people picker text box........please give me some solution whether this can be done or not if possibe please send me the link or some sample code how to do this   thank you.

Isseus with Custom Button Controls

Hi I have inherited a custom button control which was originially derived from a LinkButton, however due to some isseus with the click event and different browsers it has been decided to use a control derived from a Button. I have the following issues with this: 1) The text appears with a box around it whereas the original didn't have this (see example below) 2) When i position the cursor over the button it correctly changes colour but the text disappears whereas the original it remains. Any help on this would be appeciated, I have attached my code and css files Regards Kenpublic class GemaButtonControDesigner : ControlDesigner { public override string GetDesignTimeHtml() { GemaButton control = this.ViewControl as GemaButton; string rtr = control.Text; if (String.IsNullOrEmpty(rtr)) rtr = "GemaButton"; return rtr; } } [ParseChildren(true, "Text")] [Designer(typeof(GemaButtonControDesigner))] [DefaultProperty("Text")] [ToolboxData("<{0}:GemaButton runat=\"server\"></{0}:GemaButton>")] public class GemaButton : Button { #region Constants private const int MINIMUM_SIZE = 16; private const int SMALL_SIZE = 79; private const int DEFAULT_SIZE = 97; private const int SMALL_HEIGHT = 10; private const int DEFAULT_HEIGHT = 14;

SPCalendarView in sharepoint 2010 placed on custom aspx form does not respond to any actions

Hello everybody! We are facing strange problem when using SPCalendarView  in custom aspx form. Calendar does not cause any postback when clicking on any of its buttons. We have have used script fix (step 4) from this microsoft walkthrough and our calendar started to partially work, but it was throwing javascript exceptions in new inserted function. After function fix (semicollon missing), calendar stopped working again... Does anybody have any idea what can be wrong?

HTMLEditor Custom Button

 I'm trying to use the ajax HTMLEditor for the first time.   I've used a class vb.page to specify which buttons etc. :-  TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Bold());   I want to add a dropdownlist with my own values in, such as Heading1, Heading2 etc. where the font size and color is changed.   Any help would be appreciated as I can't seem to find many tutorials on this.

Create 2 custom actions as one

Hi, In the custom actions in SharePoint designer 2010 it's possible to set: Navigate to a form / start a workflow / navigate to a url. Is it possible to set in one custom action: start a workflow and then navigate to a url...? (i want to start a workflow which create a wiki page and then navigate to this new page, all in one custom action. i didn't find a way to do those 2 steps in a workflow, since it may create the page but it doesn't open it... and on the other hand i didn't find a way to set a URL which creates the new page in the wiki library...) thanks!

Adding Custom Actions to Ribbon UI in InfoPath forms

Hi experts, - I have a custom List in my site. - I have modified the default SharePoint List forms (DispForm.aspx, EditForm.aspx and NewForm.aspx) using InfoPath 2010, changes being related to the layout of input controls. - Then I wish to add a custom action (a print button - for printing based on modified layout) in the Ribbon Control of these InfoPath modified forms (i.e. displayifs.aspx, editifs.aspx, newifs.aspx). - I am doing the following http://www.endusersharepoint.com/2010/02/19/adding-custom-actions-to-the-ribbon-ui-in-sharepoint-2010-using-sharepoint-designer-2010/ but i guess, it only forms for the SharePoint List forms and not the Infopath modified forms. Any suggestions on how to add a custom action of 'Print' on the Ribbon UI of the list forms. Is there any other better approach? Kindly advise. -Pallz.

Custom SPD workflow actions not showing in prod enviornment

We have developed some SharePoint designer workflow actions and in our production enviornment we get the behavior where the Custom actions show up in the actions list but when select the associated sentence text with paramters is not displayed.  We have double (and triple) checked that the actions files and the assembly signatures match - the SAME files have been installed in another environement and everything works. We believe we have tracked it down to when SharePoint Designer makes a call to the site collection web service webpartpages.asmx - GetAssemblyMetaData the client machine (with SharePoint Designer running) is not getting a full response to this call.  Any thoughts / ideas are appriciated!  Rob Roach     
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend