ArdeviaForum

Auto Increment Column - Create Unique ID for item On clicking Save Button

Discussion created by ArdeviaForum on Aug 18, 2016
Latest reply on Aug 18, 2016 by ArdeviaForum

Original Post by maryb (Imported from Ardevia Forum)

Hello,

 

I am trying to generate a unique identifier for all new items created in a list.

 

I understand that each new item does receive a Unique SharePoint generated ID.

 

I would like to be able to customize this field if needed ie:

 

2015 - 1

 

I've looked at the post on creating an auto-increment number before saving & received the following error when testing script:

 

 

 

Failed eval expression:  Error Occurred on evaluating expression var camlQuery

='<View><Query><OrderBy><FieldRef Name="ItemID" Ascending="FALSE"/></OrderBy></Query></View>';


RefenceError camlQuery is undefined

 

Many Thanks

Outcomes