Forum Discussion
Unique Integer Colum in Sharepoint List
Hello,
how can I get a column in a sharepoint List which is basically an editable ID.
I tried using the number type and set the decimal to 0 and made it unique.
That works if users only enter whole numbers.
However if someone decides to enter for instance 1.1 and another item with 1 already exists then it creates a new item showing 2 items with the value 1 in that field which should be unique.
Any ideas?
Best regards
- I solved this using validation:
=IF([Number Column] = ROUND([Number Column], 0), true, false)
- codingpebbleCopper ContributorI solved this using validation:
=IF([Number Column] = ROUND([Number Column], 0), true, false) Hello codingpebble
with this settings it's only possible to add whole numbers:
I have it not tested, but maybe it's also possible with column validation:
Best, Dave
- codingpebbleCopper Contributor
I think Im using the exact same settings.
However Im still able to add the same number in the column Fahrzeug.
You can add 1 then add 1.1 which is also displayed as 1
and 1.11 and so on