title: How to copy the primary key from another table as my form's field default value in APEX?
body: <p>I got a "user" table and a "student" table, in user table there are some attributes such as user_id, lname, fname and gender, in student table there are some other attribute such as course, WAM and user_id as foreign key to join student table with user table.</p>
  
  <p>Now I am creating a form for user to register account.
  I created a form for user to insert data into user table, after clicking the "next" button it will come to another form to let user insert data into student table.</p>
  
  <p>How can I bring the user_id from the previous form into the second form as default value so data in both table can join together?</p>
  
  <p>For example in first form the user got his user_id as 10002, and I want to bring this value into second form's user_id field as default value.</p>