Getting id out of form record

Is the record ID only generated when it is stored in a model? I tried creating a record out of a form, but record.id or record.getId() only displayed “undefined”.
image

image

What else can i use to uniquely identify a form record without storing it into a model?

Hi Avinash,

The ID is assigned right before the record is persisted in the cloud-database until that point it may have no ID or a temporary ID, but it is only thereafter that you can be sure the record has an ID. Calling form.createRecord() merely constructs a Record-object, it does not send it to the cloud-db - form.submit will construct the Record and send it to the cloud-db.

Regards,

/Johan/