Autofill current user's firstName field into input to submit to second dataset

Hi,

I am looking to create a form that automatically fills in some information from the current user and then, when the form is submitted, inputs that information into a second dataset.

Specifically, when a user clicks onto a page, a form opens that has title input that if filled from dataset1, two inputs for first name and last name from the user dataset, and then a free text box to input text.

When the form is submitted, I want the information from all four inputs to go into a separate dataset called ‘applications’.

How would you call the input value:

$w.onReady( function () {

$w(“#title1”).value =
// The title value from the ‘opportunities’ dataset.
$w(“#first1”).value =
// The firstName of the current user.
$w(“#last1”).value =
// The lastName of the current user.

Thanks.

Hi,
User first and last name aren’t available at the moment. You can see what is available for User here .
Soon we’ll introduce a feature which will expose all site members details as a new collection. Perhaps you’d be able to use that in order to achieve the desired functionality.