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

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

New/Edit Default Form Link for InfoPath Created Forms

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :SharePoint

I've created 2 forms using InfoPath (Edit & New).  Both forms publish correctly, however I would like the "New" form to display by default when a user creates a New list item, and the "Edit" form to display (by default) when a user attempts to Edit an existing item.

Currently, Each form is available, but the New Form displays by default for either action.  The get the Edit form, the user has to select the the Edit form from the View dropdown box.  I'd really rather not have the dropdown box at all, and simply open the correct form per the action requested by the user.


View Complete Post

More Related Resource Links

Workflow which is activated when infopath form created but need attached to another costing form als


I have a requirement to create an infopath form which is simple enough to create and is pretty much done.

It however has a secret which they didn't really mention in the doc or their "simple workflow requriemetns" and this is  that it goes some where for costing.

The idea of this is to automate a paper trail so I am thinking that this costing which is to be attached to this document should not simple be an upload onto the form but part of the workflow tasks.

My questions are.

If I have the follow workflow requiremetns.


1. User fill in form and submit

2. workflow then starts

3. (cost part next?) one group of people liase with accountants to ensure funding is posible and attach to form. two option I see here.

opt 1

The costing part is part of the workflow but if I do this I need the field to be read only for everyone except for a couple of groups is it possible in infopath to do this?

Opt 2

The costing is in a different library which the workflow create the new file this has it own workflow with a task to complete it and when completed workflow marks a field as complete before the main workflow will move on to next steps.

I would need to link the two forms together preferably in both directions would be nice what the best way to do this?

4 Once costing is co

Infopath form and forms library error

I've created an InfoPath 2010 form and associated it with a forms library on a SharePoint site. When I go to the library and choose "Add document" the form opens up to be filled out by the user. When the form is filled out, and the user tries to submit, they get an error saying that I need to configure SharePoint to allow cross-domain data access for user form templates that use connection settings in a data connection file and store a UDC file in the same site collection as the form. So I've enabled cross-domain data access and I've already created a Data Collection Library for Forms in the Site that is approved. What am I missing?  Why am I still getting the error?  

Anonymous users submitting Infopath forms via InfoPath Form Web Part

Is there a way for anonymous users in a public facing site to submit InfoPath List Forms via an InfoPath Form Web Part? Currently when I go to a page with the InfoPath Form web part configured as an anonymous users I get the following error message: Error loading the form A form template (.xsn) file cannot be accessed. You may not have the required permissions to open the file The list allows anonymous users permissions to add and view items When logged in the form works fine

Permissions to edit a Infopath form

Hi, I have a requirement where a group of users should be able to edit the Infopath form and submit that into the FormsLibrary. But at the same time they should not be able to edit the properties of the Item. If i remove contribute permissions they are not able to Edit the Properties but at the same time they are not able to edit the infopath form. Please let me know the approach how to go about. Your suggestions are much valuable now     Sreeharsha Alagani

InfoPath Form Forms Services and Identity?

We have an InfoPath form running under InfoPath forms services that opens a data connection to a SQL database to invoke a stored procedure using Integrated Security.  It connects as NT AUTHORITY\ANNONYMOUS  LOGIN and is denied access. The following query failed: CPI_RPI_Table (User: LITWARE\smith, Form Name: CPI-RPI-Index-Published, IP: , Request: https://www.litware.com/_layouts/Postback.FormServer.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:CPI-RPI-Index-Published:-myXSD-2010-09-14T19-44-07, Type: DataAdapterException, Exception Message: The form cannot connect to the data source. Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.) When we run it in the InfoPath client, it connects with the users credentials. Can we have the form default to another identity, that of the SharePoint Service acount? Thanks, Nikos

EMail Link to task edit form



I have set up a work flow that creates approval tasks. I want the edit link sent to approvers in a email. What field i should use to get that ?




Using InfoPath Repeating Table in Task Edit form

I need to develop an InfoPath Task Edit form. The form will be used for the approval of the expense reports. I want the users to see the content of the expense report directly on the InfoPath form without clicking on the link and viewing it in a separate window.

I wonder if I can stick the expense report data which is a list into the extended properties of the task and then bind it to InfoPath Repeating Table?



Sharepoint 2010 add/edit form: Insert link from sharepoint disabled




I have a list with enhanced rich textbox field. I can click on Insert link, "from addres" is enabled, but "from Sharepoint" is disabled.

Is there a reason why is this button disabled? Field is enhanced rich textbox... Paste button is also disabled.



Link Directly to InfoPath Web Form

I've got an InfoPath form connected to a form library.  I have it configured to use the browser to fill it out.  When I go to the library and click "New" everything works GREAT.  What I want to do is provide a link off my home page directly to the form itself.  Is this possible?  When I just copy the URL, it prompts the user to Open/Cancel/Save the xsn.  That's not what I'm looking for.

URL of current form (InfoPath Forms Services)


I need to programmatically determine the URL of the current form, preferably without adding new dlls to the form template and increasing the trust level.

The XmlLocation query string parameter looks perfect for this, but when I try to retrieve it using 

String strSaveLocation = String.Empty;
e.InputParameters.TryGetValue("XmlLocation", out strSaveLocation)

it is empty.

In fact, outputting all the InputParameters shows that for my existing (i.e. already submitted and saved to a library) form, the XmlLocation parameter is not present (even though I see it in the querystring). Instead, there's SaveLocation (even though it's not in the querystring). The value of SaveLocation isn't dynamic - it points to the root folder even when my form is in a subfodler. I want a value that will work even if the form gets moved to a different subfolder.




can i save to a Sharepoint List from an InfoPath form created from Blank template


Guys, i am using SharePoint 2010. i created a form using InfoPath, created hi using the Blank form Template, all i want to do is save this to an existing SharePoint 2010 List using writing code. I also tried creating a DataSource connection but when i select the optoin for "Submiting Data" it does not show me an optoin to save data to a sharepoint list. Cand i do this using SharePoint webservices, if yes then how is it possible.

thanks in Advance


Custom Webpart in Default forms of a list not coming in new list created by using List Template in S



I added a custom webpart in default editform.aspx of a list and saved it as a template in Sharepoint 2010. Now when I am trying to create a new list by using this custom list template I am not getting the custom webpart in the editform.aspx. Only default form is coming.

Any kind of help will be appreciated.

How to edit WF Forms with Infopath - and where to save


I've not been trained in InfoPath 2010 and SPD 2010 but I have to quickly redo this workflow that got destroyed during our 2007 to 2010 migration.  I'm hoping this is an easy question for you guys to answer!

SPD creates xsn forms for my workflow for initiation and the various tasks.  If I click one of these, there is an option to edit it in Infopath.  It opens in Infopath, and I can make my edits easily enough (mostly text / visual changes) but then how do I get it to save the form back to the workflow?  When I go to save it, it's asking me where to save it and I'm just not sure how to make it relate to the workflow.  I had hoped it would automatically save back to the workflow but that doesn't seem to be the case.  

Please help!


InfoPath error: One or more required custom controls in this form cannot be created


I have an InfoPath 2007 form published to a form library in MOSS 2007.  This form opens in InfoPath and is not browser-enabled.

The form suddenly stopped working for me and 1 other user.  I'm a farm admin and the user only has contributor rights on the form library (and site and subsite).  Everyone else with appropriate permissions can access existing forms that use the template and can create new forms using the template.

When either one of us tries to open the form, we get:

InfoPath cannot open the following file: http://site/subsite/formlibrary/filename.xml?OpenIn=PreferClient&NoRedirect=true&XmlLocation=/subsite/formlibrary/filename.xml.
One or more required custom controls in this form cannot be created.

No errors in the web front end event log or SharePoint log files.  No errors in my client PC's event log.

I've tried the following without success:

Opening the template and publishing it to a new list. 
Published the template to a new content type on this list and a new list. 
Dumped IE cache and reset IE settings.
Rebooted the computer.
Checked permissions on the list to make sure they were correct.

Last change made to the farm:

I performed the work around change to the web

Error creating edit form for external list - Failed to find the default form for PAGETYPE PAGE_NEWFO


For the last few days we have been unable to create custom new/edit forms for External Lists in Sharepoint Designer.  When i try to create a form Sharepoint Designer show the message 'Could not save the list changes to the server'.  The corresponding message in the ULS log file is 'Failed to find the default form for PAGETYPE PAGE_NEWFORM'.  Does this mean i have somehow managed to break the form templates for External Lists?

I saw some other posts about the 'Could not save the list changes to the server' error and followed the suggested steps including removing all versions of the list and related content type, and recreatign htem but this didn't work.

Link to Infopath Form web filler


Hi guys,

Does anyone know how link to sharepoint so that it opens an Infopath 2010 form through the web interface as opposed to the desktop client? If u use the Encoded Absolute URL in my workflow emails it tries to download / open the document through my desktop client.


The world is the mollusc of your choice

Custom Webpart in Default forms of a list not coming in new list created by using List Template in S



I added a custom webpart in default editform.aspx of a list and saved it as a template in Sharepoint 2010. Now when I am trying to create a new list by using this custom list template I am not getting the custom webpart in the editform.aspx. Only default form is coming.

Any kind of help will be appreciated.

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