Skip to content

Instantly share code, notes, and snippets.

@wave-inguane
Last active August 9, 2021 12:30
Show Gist options
  • Save wave-inguane/f114c9706baab81dc59d8a9c9f5df0c4 to your computer and use it in GitHub Desktop.
Save wave-inguane/f114c9706baab81dc59d8a9c9f5df0c4 to your computer and use it in GitHub Desktop.
Client Script
function onLoad() {
//Check to see if the form is for a new record. If it is a new record,
//set the Requested for value to the currently logged in user.
if(g_form.isNewRecord()){
g_form.setValue('u_requested_for',g_user.userID);
}
}
//.................................................................................................................................
// window
//.................................................................................................................................
window.open(
'/page_namne?id=xyz_dashboard',
'_self'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment