I've been asked to setup an email form to tie into Igloo, and for the most part setting up Igloo for a SAML connection was pretty easy, (I'll do a post on that later) but for this email form setup getting some of the variables out of igloo was more tricky; especially since I am not to familiar with the platform, or how it works. I hope this post will help other coders who need to do work on an igloo system without having to get the developer account or just found it as frustrating as I did trying to break the system down. I haven't come across a good document for how to do these particular kind of things on Igloo's site but you do have to be approved by igloo to access customer care and the developer section of the site. In my option they don't have a good web only quick start guide. So I hope this will help some users of the platform. If you don't have a igloo login, the only thing accessible is the guides-ebooks page on their website.
So you have to have an account (probably with admin access) to get more info and access to the igloo support forums. When your logged in you will see something like this menu.
If you go to the Igloo support link, you will get to see the following resources.
For working just with a webform and trying to get some info from the user to me wasn't very intuitive and working with the platform wasn't intuitive but it is workable once you know how things are done. Now a requirement for this form is that I can't use an iframe, and needs to be native to igloo. So in this case the email form was setup as a start it was setting up an email form, where it sends data to a helpdesk system but I don't want the user to have to type in their email again because they are logged into the intranet and I should be able to get this information.
So after doing a lot of googling I came across an obscure reference on the community forum. https://customercare.igloosoftware.com/community/developer_questions/is_there_a_quick_way_to_get_the_current_user
So after setting up some HTML elements I came up with this.
//Display just the first name. (does a split based on the space in the name)
const firstName=title.split(' ');
document.getElementById('staffName').innerHTML = firstName;