You are viewing limited content. For full access, please sign in.

Question

Question

Javascript: if manager ID matches, copy field condition

asked on April 24, 2017

There are a lot of helpful posts in here for JavaScript, but I'm still struggling to make mine work.

We have varying levels of managers and executives with direct reports, and I have a Form/Approval Process with a dropdown to direct the form to the appropriate manager and then a lookup to forward it on to their VP/Exec for final review. 

If the "Manager" that is selected in the dropdown is the Exec, I'm trying to figure out how to use JavaScript to copy/overwrite the ID from the manager field into the Exec field. 

 

Your suggestions are greatly appreciated - thank you! 

0 0

Replies

replied on April 27, 2017

You can just use the built-in Calculation feature supported since Forms 10.0 to archive this:

set the calculation to "=IF(Manager_Lookup="Exec",execuserID,"")"

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.