add data to the form

how to make my users unable to save data if the id is not registered

Thankyou

Can you clarify? What do you mean with “…if the id is not registered…”?