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:
Here's my leave type field with it's settings
Here's my JavaScript
I also tried creating the form from scratch and it doesn't work either... No errors in the console.
Any ideas or thoughts appreciated
Best answer by rebecca_gordon
View original