Hey team,
I was wondering if someone has come across this issue. I have a field in my form called position id which I need to increment from the back end by 1. But my total number should be of 6 digits. For example my incremented id is suppose 501 but I want to Patch it as "000501" to maintain the uniformity. Please suggest me how to write the code to append zeros at the start depending on the number of digits the positionid column has. Also my positionid column is string datatype.
I'm using this formula to get the last position id:
First(Sort(ListName,Positionid,Descending)).PositionId+1