I am wanting to create a unique id with the current date and time. I have it set to set the variable in the StartScreen currently.
Also, how would you clean the record up to have a string of numbers only. For example, 06062024953
Hi!
To do this, it should just be something along the lines of:
If(IsBlank(Param("ID")), Set(VarRand, Text(Now(), "mmddyyyyhhmmss")))
The if function is just what you already had, and "Text(Now(), "mmddyyyyhhmmss")" formats it as you specified.
Hope this helps!
Great thanks, I had to move it to on Start for it to work.
@madlad I put varRand in a textbox text control to test it and it is not coming through.
Looks like it's Blank currently - try running OnStart from the 'App' Selection in the Screen view and see if that sets it
Let me know how it goes!
Ok it populated. I moved to the create new button so it would create when I created a new item.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Chiara Carbone as our Community Spotlight for November…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 714 Most Valuable Professional
Michael E. Gernaey 419 Super User 2025 Season 2
developerAJ 243