Custom Unique ID for infopath forms

Hi All,

I have created an form library  infopath form. I need a unique ID created for saving the form to library.

There's a drop down on the form, which drives the rest of the form. 

The drop down values are like A,B,C,D.

Now when user selects any of the value, it should be saved with an ID specific to drop down type.

like A 1, A 2, and B 1, B 2 and C 1 and C 2 and D 1, D 2.

now when user selects the value in the drop down it should look for the items of that value from the list and add +1 to it on a submission.

Is there a way to accomplish this.

March 26th, 2015 9:36pm

Hi Sree,

It could be achieved with developing the custom code to loop the list "Qunique ID" column value (e.g. D1,D2...)according the current dropdown value(e.g. D), then get the biggest value after the character D and then plus 1, then set it as field value as your specific requirements.

Here are two articles about use code behind in InfoPath form which should be helpful, you can take a look.

http://yourfriendvivek.blogspot.in/2013/03/sharepoint-client-object-model-com-in.html

http://platinumdogs.me/2010/06/21/sharepoint-using-the-sharepoint-object-model-with-infopath-form-code-behind-part1-of-2/

Thanks

Danie

Free Windows Admin Tool Kit Click here and download it now
March 30th, 2015 3:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics