Has anyone had issues with bootstrap/popper dropdo...
# suitescript
r
Has anyone had issues with bootstrap/popper dropdowns in portlet scripts? I'm including bootstrap 4 css, jquery, popper and bootstrap.js exactly as suggested on the bootstrap website. I have the most basic dropdown and toggle doesn't work.
b
share your code
still not really sure what you have there
there are 2 ways you can implement this and i dont know which
you doing
r
Apparently I should be doing something I'm not then. I pasted the dropdown div from the example online. I assumed it would be a functional dropdown and it isn't.
b
the different types of portlets are implemented different ways
r
It's an inline html field.
b
as in a field
or as in a inline html portlet
r
Sorry, it's an inline html portlet. It was a suitelet with an inline html field earlier.
b
inline html elements are added to the dashboard directly
which means you need to worry about messing up the dom
in this case, your version of jQuery could be overwriting netsuite's version
you take your chances on that approach
and should pay extra attention to the browser's console for errors
r
It won't load bootstrap.min.js. Unexpected typeerror: cannot read properties of undefined. Tried CDN link, tried file cabinet.
b
if you want, you can try actually sharing your code
if not, expect to use the console's debugger to figure out what is undefined