Hey guys. I am embedding something using inlinehtm...
# suitescript
n
Hey guys. I am embedding something using inlinehtml field but it is causing ALL the standard/native drop down fields to not work. Have you faced this issue? Any solution?
b
my guess is that you are using an iframe, in which you need to do some dom manupulation
part of the dropdown related functions runs
Copy code
NLDropdown.prototype.initializeElements = function (a) {
  null == a && (window.parentAccesible && 'undefined' != typeof parent && parent.NS.Window.getActive() && (a = parent.NS.Window.getActive().content.contentDocument), a = a ? a : document);
  this.ddbtn = this.inpt = a.getElementById('inpt_' + this.nameC);
  this.hddn = a.getElementById('hddn_' + this.nameC);
  this.indx = a.getElementById('indx_' + this.nameC);
  for (this.span = this.inpt.parentNode; 'span' !== this.span.nodeName.toLocaleLowerCase(); ) this.span = this.span.parentNode;
  this.isSelectable() || (this.inpt.unselectable = 'on');
  this.elementsAreInitialized = !0;
  this.bInitialize = !1
};
that includes functionality changing some properties of the dropdown to the parent windows element, which will likely not exist for your suitelet field
n
Thanks for your reply @battk. I am not using iframe. But I will see if I can utilize this function. My next step is to use iframe and see if it resolves the issue.
I think it's worth mentioning that the drop down with multiple options is working fine - which allows searching. While the normal drop down for 4-5 options is not working.
@battk it is causing the native/standard drop down fields to not work. all of them. Not the ones in my embedded view.
b
i had to guess because you have not shared enough information to reproduce the issue
n
I couldn't share more info due to the nature of this work. But I resolved it by embedding in suitelet and calling that suitelet in my iframe.