Set the default value of AutoID to be the function Now. Uncheck the box to refresh the value. Rate this:. Like this: Like Loading Laura November 23, pm. Uday Kiran August 21, pm. Laura August 30, am. Make your file name contain the WhenCreated column it will always be unique.
Pete August 28, am. Laura September 26, am. Esau November 20, pm. Laura February 3, pm. Liza March 7, am. Laura April 3, am. October 15, pm. Fei June 13, am. Hi Laura Can you take me through on all stages for creating the InfoPath, using ID as file form name, where I create it from, how to link to my sharepoint, creating a data connection library where they will be submitted and how to retrieve, assign the submit button, received etc. I want to create a login and report form for end users, Like Like.
John September 27, pm. John Gaylord September 27, pm. I figured out how to add the current year appended to the file name. Be sure to promote the values off the form when you publish.
Laura September 29, am. John March 2, pm. I have signatures in the forms and each time I update the content type and someone opens an older form it auto updates the form to the new version and removes all the signatures from the old form Like Like. Laura May 28, pm. Monica March 4, pm. Allan Kisner November 28, am. Hi Laura, I like this post. WonderLaura November 28, am. Allan Kisner November 28, pm. Laura, Thanks for the prompt response. Osama Momani.
Maybe name date and ID, or just ID or whatever. Thanks for ur reply : ok, its a good way i have already applied it, but i have one more question, for my application, users are able to design a form and publish it to forms server, and plus they will fill the forms displayed on web browser, they have much interference to the system So you want to know the filename of an existing form that is being opened by the user?
There is a way to get this in code I know. Or are you wanting to identify the user and then use that in your form for certain permissions. Please clarify your process and what you are trying to accomplish. I'm struggling how to create a random number to populate the ID field only ONCE when the form is initially created, not every time a user opens the form from SharePoint.
Any thoughts? Thanks, Tom Clay Fox:. Calculate the ID but store it in your form and reuse it each time. Clay Fox:. All rights reserved. View our Terms of Use. Auto-Generated file name Reply Contact Hi all, how to generate a file name automatically?? In reply to.
Reply Contact Thanks for ur reply : ok, its a good way i have already applied it, but i have one more question, for my application, users are able to design a form and publish it to forms server, and plus they will fill the forms displayed on web browser, they have much interference to the system Reply Contact So you want to know the filename of an existing form that is being opened by the user?
Reply Contact to get the file name of an existing form would be so much helpful!!!!! Reply Contact Typically you would not give the user the opportunity to name the form themselves. If you are developing an InfoPath form in an enterprise environment, chances are that you would like to generate these names automatically. These automatic file names are very easy to generate when you have simple forms that are submitted once but when you have other constraints where you have to generate names dynamically based on the fields in the form i.
Date, Department and the stages of the form i. Draft Stage, Final Stage etc. In one of the recent projects, we had a requirement to generate unique file names based on the existing form fields. Pretty easy right? But another requirement was to allow users to Create and Update these forms as often as they would like. This is where conditional default values can be used. We will use all these fields to generate a unique file name for the form. The data type of these fields are pretty self-explanatory.
These will be internal fields and not displayed on the form. For the purpose of this post, I have created controls in the view, but you can choose to just create the files without associated controls in the view.
This allows me to visually group the fields that are not being displayed on the form. InfoPath path provides a way to define conditions using expression boxes for default values.
0コメント