Auto Numbering in InfoPath 2013

Hello,
I am brand new to InfoPath.  I was trying to follow some videos and tutorials I found on auto-numbering a field in a form. I had a hard time following because it seems there are slight nuances between versions, and 2013 acts and looks different
than the tutorials I found. For instance when assigning a value to a field like max(@ID) + 1,  whenever I use the @ sign I get an error in the formula.  Does anyone have a complete InfoPath 2013 'how to' create an auto-number
field on a form?  Thanks 

Hi,
Depend your description, you want to get some information about how to create an auto-number field via InfoPath 2013.
The steps below about how to create an auto-number field are that I have operated in my InfoPath 2013, and you can follow it:
Create a custom list, named "Auto".
Create a column in that list, type number, named "Auto No.".
Clicked List -> Customize Form and edit default form in InfoPath.
Clicked Data -> Data Connections -> Add in InfoPath.
In "Data Connection Wizard", set New Connection to Receive Data -> SharePoint library or list -> set URL of my "Auto" list -> only select ID column  -> checked "Automatically retrieve data when form is opened"
In InfoPath design view, right click "Auto No." text box -> Properties -> Default Value -> fX button -> Insert Function -> Math -> Max -> OK -> double clicke on the formula to select field -> Show advanced view ->
in "Fields" drop-down choose secondary data source (named as my "Auto" list) -> selecte 'ID' node in 'dataFields' -> OK -> back in formula type '+ 100' (so the whole formula is like: 'max(ID) + 100')
Publish it to SharePoint list.
Here are the links about the details of creating an auto-number field, and you can take a look:
https://3dcios-web.sharepoint.com/delong/Lists/Posts/Post.aspx?ID=8
http://www.sharepointsharon.com/2011/11/infopath-2010-reference-filename/
Thanks,
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • Auto populate Infopath 2013 fields after selecting a specific dropdown option.

    Auto populate Infopath 2013 fields after selecting a specific dropdown option.
    Hi.
    I have a Sharepoint 2013 list with three fields. Code, Section and Sub Section.
    I would like to be able to have the form autopopulate the Section and Sub Section fields when a value for code is entered.
    How would I go about this please?
    Thanks
    Jon

    Hi JonMorgan,
    Based on your description, my understanding is that you want to achieve that the second dropdown gets populated depending on what the first dropdown is set to.
    To achieve your requirement, creating cascading dropdown fields with InfoPath.
    Please refer to the following links about cascade drop down in InfoPath form:
    http://msreddysharepoint.blogspot.in/2012/12/infopath-2013-web-browser-creating.html
    http://www.pointbeyond.com/2011/11/20/cascading-dropdowns-in-infopath-2010/
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • InfoPath 2013 - Rich Text box - Expand to show all text option not working

    I have create an InfoPath form and created a view which will be used for printing. I have a rich text box in this print view and the scroll option for this rich text box is set to "Expand to show all text". However, it is not working and it doesn't
    expand the size of the text box based on the content length.
    same thing used to work in InfoPath 2010.
    Any suggestions?
    Thanks,
    Neelesh

    Hi Wendy,
    Here are the steps I have used:
    1. On default view added a rich text box.
    2. Created another view called Print and mapped it to the same Field which I added to default view
    3. Set the Wrap text and Expand to show all text on both the Rich Text Box Properties - in default view and in Print
    view. Also set the height of the rich text box to auto.
    4. Set the print views as the print view for default view
    5. Deployed the form to SharePoint Form Library
    6. Opened the form in browser
    7. Entered the content in the rich text box in default view. It expands well if I have much content
    8. Clicked on Print preview and that opens up the print preview and it shows the rich text box only one line in height and with scroll bar
    I missed to mention that it is a web browser enabled form and I am using InfoPath 2013 and SP 2013.
    It does work fine in InfoPath client.
    Thanks.

  • Auto numbering is happening even when F11 is pressed

    Hi ,
    We are developing a customer form wherein we have 2 data blocks . These two data blocks share the master-detail relationship. The detail block is a multi record block.
    We are auto numbering an item <line_number> in the detail block following the steps mentioned in the metalink [ID 33342.1]
    https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=130989808463426&recommended=true&type=DOCUMENT&id=33342.1&_afrWindowMode=0&_adf.ctrl-state=ud1uneota_69
    The steps mentioned in the link are generating numbers automatically when a new record is created and resequences the line numbers when a record is deleted. It works fine in these two scenarios.
    But we have two issues here :
    1) The line numbers are getting generated even when we press F11 in th detail block. This should not happen in our form. (We need to suppress the auto numbering in F11 mode)
    2) If we move the cursor to a new record in the detail block, the line number gets generated there but if we move back to the previous record without entering anything in the new record, that new record does not disappear. It stays there .
    Please let us know how can the above two issues be resolved
    TIA
    -SR

    Hi.
    From what I saw on metalink note this is expected behavior. So the first problem is simply to solve, Just call :SYSTEM.MODE function and if it's result is ENTER-QUERY then do nothing (do not call resequence routine). As for the second problem there is a simple solution if your business logic can accept it. You could make one item in child block required. This way a user could not walk away from that record without deleting it first. If this solution is not applicable to you then you will have to manually program logic for this situation.
    Best regards.
    Edited by: gregor13 on Mar 20, 2013 2:38 PM

  • Views in Infopath 2013

    I have created an customized list form in InfoPath 2013.I have two views. One is user information where some user data is auto populated and some are filled by the user and I have also added attachment control. And another view is manager view who reviews
    the user form.
    here my problem is I want that attachment attached by user should be read only in manager view. In manager view manager only can read that attachment but should not able to add another attachment.
    Please help me how to solve this issue.

    In order for the attachment to show, you'll have to have the attachment control on the form. Unfortunately, this is not a field that can be disabled. You can add it to a section, but sections can only be hidden. You can make an entire view read only, but
    that would mean all fields are read only. If you need the other fields to be editable, then you'll need to do some sort of custom code to hide the attach button and the delete attachment button.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • InfoPath 2013 start a workflow

    In a new InfoPath 2013 form that uses a custom list, I would like to add a custom button and/or something to click on for the user to eventually 'start a workflow when item changes'.
    Right now since I am in the early phase of the process, and it would be fine to 'start the process manually' also. Basically I would like directions on what a user can click to they could start the workflow.
    I found the following link and it shows how to start a workflow from the documents library:
    https://www.youtube.com/watch?v=afttEV61kQI
    I would like to know how to have this same process occur from an InfoPath 2013 form where the user clicks my 'button/item' and does not click on the 'auto generated' save button.

    assuming that the workflow should not necessarily start ANY time ANY file changes (which is a default option, and requires no custom dev effort)... what I've seen a few times, is for the form to include a checkbox ("start workflow")... the workflow
    starts, and checks for the condition... and stops if the checkbox is not checked.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Infopath 2013 SOAP Web Service Data Connection - Error: The file is not a valid XML file

    Here are the steps to replicate the issue I’m having when adding lists.asmx or any other SharePoint web service in InfoPath 2013. This web service opens fine in the browser from my desktop. My account is a farm administrator and is added to the
    web application’s User Policy.  I can use these services just fine using Nintex 2013 Workflow.
    Open InfoPath Designer 2013.
    Select Blank Form and click Design Form button.
    Click “Data” tab.
    Click “From Web Service” and select “From SOAP Web Service”
    Enter https://mysiteurl.com/_vti_bin/lists.asmx?WSDL for the web service definition.
    Click Next.
    Windows Security window pops up.
    Enter a credential. I tried both my account and the farm account. My account is a farm admin and is added to the web application’s User Policy with Full Control.
    Click OK. It prompts for credential multiple times.
    I get below this error messages: 
    Sorry, we couldn't open https://mysiteurl.com/_vti_bin/lists.asmx?WSDL
    InfoPath cannot find or cannot access the specified Web Service description.
    The file is not a valid XML file.
    Not enough storage is available to process this command.
    We have a project that is in need of these services using InfoPath so any help is greatly appreciated.

    Hi Brian_TX,
    For your issue, try to the following methods:
    Change your service binding in web.config to:binding="basicHttpBinding". It seems in VS it defaults to wsHttpBinding.
    Replace all instances of "parameters" from the web service wsdl with the name "parameter"
    There are some similar articles about the issue, you can have a look at them:
    http://www.infopathdev.com/forums/t/23239.aspx
    https://social.msdn.microsoft.com/Forums/office/en-US/621929c3-0335-40af-8332-5a0b430901ab/problems-with-infopath-web-service-connection?forum=sharepointcustomizationprevious
    https://social.msdn.microsoft.com/Forums/en-US/5fa5eca8-f8d7-4a2e-81ba-a3b4bdcfe5af/infopath-cannot-find-or-cannot-access-the-specified-web-service-description?forum=sharepointcustomizationlegacy
    Best Regards
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • How do I use infopath 2013 with visual studio 2013 to modify forms with code?

    Dear all,
    I am using sharepoint online and infopath 2013, I wonder how do I edit infopath 2013 forms with visual studio? When I try to edit form code it says  I need visual studio 2012 and some other tools, I installed them and visual studio 2013, I wonder how
    do I get rid of the message and start coding? Can someone provide a detailed procedure of doing so? I am having trouble with creating multiple items with single infopath form with repeating table on sharepoint online. Thanks.
    Timothy

    Hi,
    According to your post, my understanding is that you want to create InfoPath form with code using Visual Studio.
    More information about develop InfoPath form with Visual Studio:
    http://msdn.microsoft.com/en-us/library/office/ee526362(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/aa942693.aspx  
    For the second question, I suggest you can create another post , it will be easier for others to focus on one question in one thread.
    Best regards

  • Read-only textbox and/or disable buttons in Infopath 2013

    In a InfoPath 2013 custom list form, my requirement is to make textboxes read-only, disable buttons, and/or create new buttons so users can not update fields in a custom list once the user has updated data in the list. Basically after the user hits the 'save'
    button so that the data is saved.
    The requirement is not to set up custom permissions since my SharePoint administrator said I should find another option. This administrator said he does not see a reason for only an 'add' permission.
    Thus can you tell me how to meet my requirements? Can you show me screen prints, pictures, or urls on how to solve the problem?

    Hi,
    According to your description, you might want to prevent users from editing the existing items.
    There are two workarounds I can provide as below:
    As the first workaround, you can remove Ribbon from SharePoint InfoPath List Form via modifying the OOTB settings of InfoPath Web Part.
    Here is a link about more details, you can use it as a reference:
    http://the-north.com/sharepoint/post/Remove-Ribbon-from-SharePoint-InfoPath-List-Form
    As the second workaround, you can apply the CSS code below to your page, it will hide the “Edit Item” button in the Ribbon:
    <style type="text/css">
    #Ribbon\.ListItem\.Manage\.EditProperties-Large{display: none !important;}
    </style>
    About how to add JavaScript/CSS into SharePoint page:
    http://blog.cloudshare.com/2012/10/29/how-to-insert-custom-javascript-code-in-sharepoint-2013-pages-part-i/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Infopath 2013 - Values are not appearing in a drop down field referencing site column which uses lookup in custom list

    I have a master custom list that has a set of site columns. For each site column there is a lookup to a custom list with reference data. When I edit the list in data entry view all values in drop down fields work fine, but when I customize the form for
    the master list, no data appears in the drop down fields. I can change the data binding on the form so it references the the correct data and when I preview the form it works. But when I publish it, no data is available in these drop down fields.

    Hi  shakonarson,
    According to your description, I try to reproduce your scenario but the lookup field works fine.
    When we customize the form for the  list  in the InfoPath 2013 , it is by design that the Drop-Down List Box control cannot  display its value.
    For troubleshooting your issue, please take steps as below:
    Go to lookup List Box on your form in  InfoPath 2013 , right click it and choose “Drop-Down List Properties” from the bottom of your field menu.
    Make Sure you select “Get choices from an external data source” and correct Data source.
    Make Sure the Xpath  of Entries is “d:SharePointListItem_RW” under the dataFields.
    Here is a good blog for sorting lookup column DropDown by customizing your list form with InfoPath you can have a  look:
    Sort SharePoint lookup column Dropdown by customizing your list form
    with InfoPath
    Hope this helps!
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Access Denied Using REST in SharePoint 2013 and InfoPath 2013 environment

    So here is the story. I developed a simple application in InfoPath 2013 (saving as InfoPath 2010) and published to a SharePoint 2010 server. 
    A major component to my form is the use of REST to query a SharePoint list. Everything works fine and dandy through the web browser within the SharePoint 2010 environment. Now that I have moved the source list to SharePoint 2013, saved the form as InfoPath
    2013, reset the REST data connection, and published to SharePoint 2013, I get the following message on the Form Load. 
    Warning
    An error occurred querying a data source.
    Click OK to resume filling out the form. You may want to check your form data for errors.
    Hide error details
    The underlying connection was closed: An unexpected error occurred on a receive.
    An entry has been added to the Windows event log of the server.
    Log ID:5566
    Correlation ID:116a259c-904c-d098-fc14-956c88240dd8
    When I go to the Event Viewer, I see this......
    WebHost failed to process a request.
    Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/55627478
    Exception: System.ServiceModel.ServiceActivationException: The service '/_vti_bin/ListData.svc' cannot be activated due to an exception during compilation. The exception message is: Exception has been
    thrown by the target of an invocation.. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    Any thoughts, questions, or troubleshooting ideas would be very welcome!
    Thanks in advance. 

    Same issue here calling UserProfile REST.
    ULS says:
    The following query failed: My REST Web Service (User: 0#.w|domain\administrator, Form Name: Personal, IP: , Connection Target: , Request:
    http://server/_layouts/15/FormServer.aspx?XsnLocation=http://server/Pesonal/Forms/template.xsn&SaveLocation=http://server/Pesonal&ClientInstalled=true&DefaultItemOpen=1&Source=http://server/Pesonal/Forms/AllItems.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:PErsonal:-myXSD-2013-09-27T19-45-38
    Type: DataAdapterException, Exception Message: The form cannot run the specified query. The remote server returned an error: (401) Unauthorized.)
    It works fine in Preview and Filler but dies in the browser.
    SharePoint 2013
    Matthew McDermott, MVP SharePoint

  • How to add one textbox value into another textbox value every month in a list of infopath 2013

    InfoPath 2013.
    I have created a list in which I placed 2 textboxes.
    I have one textbox named Paid Amount:
    Second textbox named Invoice Amount:
    I want when I add any amount in Invoice Amount textbox in every month it Add into
    Paid Amount textbox
    How I can do this ?
    for e.g:
    Paid Amount : 2
    Invoice Amount: 3
    Paid Amount = 5
    When enter next month 6 in Invoice Amount the
    Paid Amount turn into 11.

    You can apply formula using a rule by creating a hidden field and calculate the values. Refer to the following posts for more information
    http://office.microsoft.com/en-in/infopath-help/add-subtract-multiply-and-divide-values-HP001096532.aspx
    https://support.office.com/en-us/article/Add-rules-for-performing-other-actions-5322d726-b787-4e5f-8d37-ba6db68b451d?ui=en-US&rs=en-US&ad=US
    and for complex calculations using code, refer to the following posts
    http://www.infopathdev.com/forums/p/21500/74297.aspx
    http://drekendrop.blogspot.in/2011/03/infopath-2010-get-and-set-value-of.html
    Cheers,

  • Auto numbering tables

    I am currently using FrameMaker 8.0 and have had a problem with the auto numbering of tables.
    Can anyone tell me if it is possible to auto number tables using different chapter numbers within the one document?
    I know that it is possible to do this when the chapters are seperate documents within one book.
    E.g.
    First page - Chapter 1
    Table 1.1
    Table 1.2
    Next page - Chapter 2
    Table 2.1
    Table 2.2 etc.
    For some reason when I try to do this any tables under Chapter 2 are still named Table 1.1 and Table 1.2 etc.
    I have tried using a series but that still does not seem to work.
    Any help would be appreciated!

    Thank you both, this helped a great deal.<br /><br />However, I am still having trouble with one file in the book. It seems to be repeating the same chapter number not adding one when the style appears again.<br /><br />E.g. Page 1 has Chapter 1 (C:Chapter <n+>)<br />     Page 3 has Chapter 1 (which is meant to be Chapter 2)<br /><br />Also is there a way to continue the chapter numbers from a previous file in the book?<br /><br />E.g. File A has Chapters 1-4 in it<br />     File B has Chapters 5-8 in it<br /><br />At the moment they are restarting in each file.<br /><br />Any ideas?<br /><br />Thanks,<br />Skye

  • InfoPath 2013: VSTA 2.0 web service breaks project

    Some time ago an InfoPath form was build in InfoPath 2010 with two Web Services in its code behind. In order to edit the form with InfoPath 2013, a fresh project was made and the necessary components were moved from the existing project to the new one.
    When testing the form, everything worked fine. However, after closing and opening the form, when trying to open the Code Editor, the following message was returned: "The system cannot find the path specified." 
    After some investigating I was able to reproduce the error on two distinct machines as follows:
    Create a new InfoPath 2010 Filler Form
    Create a Code Project with target version: InfoPath 2010
    Note that if you now save the form, then close and open it again, everything is still fine.
    Add a Web Reference
    I added <SharePoint 2010>/_vti_bin/lists.asmx
    Now save and close the project, save and close the form, open the form and open the Code Editor
    Observe the error message :'(
    Note that you can still open (and fix) the project with VS2012. You will have to delete both the web service AND the Web References folder to be able to open the project in InfoPath again.
    If you are able to reproduce this problem, please leave a comment. If you have a solution, even better.

    Ok, problem solved! Well, sort of, but I think this solution works better.
    As Ruud has discovered, the problem relates to InfoPath getting confused about the SharePoint web reference. In fact, when running SysInternals ProcMon, I noticed a suspicious entry:
    INFOPATH.EXE - Create File - C:\Users\david\My Documents\InfoPath Projects\Form1\http:\sharepoint\_vti_bin\lists.asmx%3fwsdl - NAME INVALID
    That does certainly look like an invalid name! So, to work around this, simply stop using a web reference! Instead, start by adding a web reference (could be in a different VS project), and copy the generated Reference.cs file into your InfoPath code project!
    You'll need to make one tweak (a console project would use Properties for the URL), but other than that it will work fine.
    The one disadvantage to this approach is that you don't get to update the reference automatically, but you don't care because it's a reference to SP that will not change.

  • I'm writing a report and need a title page, so I want the auto-numbering to start with the second page. So the title page is zero and the next page will read "1"

    I'm writing a report and need a title page, so I want the auto-numbering to start with the second page. So the title page is zero and the next page will read "1" How do I do this?

    Hi H4S,
    Click at the end of the Tile page.
    Menu > Insert > Section Break.
    Click in the second Section. Insert a page number in the Header or Footer.
    Inspector > Layout > Section:
    Regards,
    Ian.

Maybe you are looking for