How to let the form generate an auto client or patient ID

@chenboly, maybe you could try this approach discussed previously: