How can I show a html page inside a suitelet with ...
# suitescript
a
How can I show a html page inside a suitelet with netsuite navbar? I have tried to create a from and add an inlineHtml field and set the default value for that field but didn't work.
b
you sound like you are doing the correct thing, beside the page part, you add elements intead of the entire page
what does your code look like
a
const form = createForm() const field = form.addField() field.defaultValue = getReactPage()
e
Do you have any parameters/objects you are passing in there? I don't believe this is valid
b
and the value returned from getReactPage
a
The value is a html page from top to bottom
Yes there is but it was hard to type
Create form has title parameter and add field with id and type
b
dont try to add the root html element
there is already one on the page
a
You mean I should add just inside body tag
b
take a look at the source of the page generated by netsuite
dont add elements that are supposed to be unique and are already there
a
Is there any other way
Or just form and inline field
b
lazy way is an iframe
a
I've added a p tag instead of react page
Same result just a white page
Nothing else
b
share enough for someone else to recreate the problem
a
I think I'm missing something
What else do we need
Just a form and a field
And set the value for that field
Oh my god
Find it
Commented last line
Thanks