List look up component and Jquery document.load is not happening in synchronized way in NINTEX FORM in Office 365. How to overcome this situation to populate different view of a same list item to different user?

Blog Post created by mbhattacharyanetwoven on Aug 20, 2015

Suppose there is a single valued list look up component that provide the information of a user role depending on user login name. Now if we want to display this role from that list look during document.load function we will found it empty. Since the value of list look up component gets populated after sometime of document.load function, it shows blank. The situation to overcome this is to set a timer function in document.load so that the list look up get a chance to get populated. After getting that role we can easily disable/enable the fields of the form using JQuery. So we can have multiple view of a same item for different role based user. This could be a substitute of a single value look up in Office 365 that is yet to implement.