AnsweredAssumed Answered

Can't set Lookup's Select value in JavaScript Office 365 Forms

Question asked by rebecca.gordon@provoke.co.nz on Jan 6, 2016
Latest reply on Jul 5, 2016 by rebecca.gordon@provoke.co.nz

Hey everyone,

 

I'm trying to set a default value for my "Leave Type" field which is a lookup to a list of leave types. I've followed all examples I've found online and can't get it working. I got the code working for a normal choice field fine on the form and I can also write the value of the drop down out to console when clicking a button, so everything except setting the drop down seems to work fine.

 

Here's the HTML for my select:

SelectHTML.PNG

 

Here's my leave type field with it's settings

LeaveTypeField.PNG

 

Here's my JavaScript

JavaScript.PNG

 

 

I also tried creating the form from scratch and it doesn't work either... No errors in the console.

 

Any ideas or thoughts appreciated

 

John Luangco Chris Ben

Outcomes