Skip to content

Instantly share code, notes, and snippets.

@wave-inguane
Last active Aug 9, 2021
Embed
What would you like to do?
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