Expand my Community achievements bar.

SOLVED

Unique Value/Random generated id

Avatar

Level 4

My Requirement:

I need to show unique/Random generated value either in Selection field or textfield.

to avoid overlapping.

Please some suggestion to achieve .

1 Accepted Solution

Avatar

Correct answer by
Level 10
Hi, If you want to keep things to client side. , I would suggest add a listerner in your selection / textfield , in that listerner you can write js code to generate random values     

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10
Hi, If you want to keep things to client side. , I would suggest add a listerner in your selection / textfield , in that listerner you can write js code to generate random values     

Avatar

Level 10

Write an custom AEM Java Service that produces a GUID:

 String myGuid = java.util.UUID.randomUUID().toString();

Avatar

Level 4

Thanks i wrote listener to fix that.