Hi Everyone, i want to create custom form for sur...
# suitescript
a
Hi Everyone, i want to create custom form for survey, Can i custom suitelt with HTML & CSS and how i process the data entered. Because ServerWidget Module cant styling with CSS. Thanks
j
Yes, you would end up using JS to generate the HTML and CSS.
a
Can i get the sample refrence ? and my goal is to use External URL to user whos dont have netsuite account
j
Post what you have so far and let us know where you are stuck.
a
I Want to Create Custom Form and Custom Form is Filled by user who dont have Netsuite Account. I Usually Create Custom UI with Suitelet and ServerWidget Module, search & query module to get Data form Netsuite to populate data in Suitelet. Than I catch the data inputed in custom field created with serverWidget with post method , context.request.paremeters.field_name Now I try to create Custom UI with HTML & CSS in suitelet script. But I cannot Use module Search/Query (IF I use external URL suitelet). So i create manualy option tag for select input type HTML. Cause the list is Few Data. But now i cannot passing the data inputed in form to create Record in netsuite Thanks
n
@Armanda I am doing this exact same thing at the moment and I have it basically completed if you would like me to send you some code snippets. Suitelet is accessed from a button on an email that has a rating 1-10. Upon load of the suitelet it creates a custom survey record that stores the rating selected. The suitelet uses inlinehtml to create a form that looks like the email where users can enter in follow-up information that then updates the custom record.
b
@Armanda Yes, you can definitely create a custom survey form using a Suitelet by directly writing and sending HTML instead of using the
ServerWidget
module. Since
ServerWidget
doesn’t support CSS styling, you can construct your HTML with Bootstrap or any other CSS framework for a better UI. There are two main approaches: 1. Embed HTML in the Suitelet Response – The Suitelet itself returns the HTML page containing the form. This form would send a
POST
request back to the same Suitelet URL, which then processes the data (e.g., saving it to a record, running searches, etc.). Your HTML should also include JavaScript to handle the response. 2. Serve the HTML from File Cabinet – You can upload the HTML file to the NetSuite File Cabinet, make it publicly accessible, and share its URL instead of the Suitelet URL. The form in the HTML would still
POST
to the Suitelet for data processing. If you need a quick starting point, you can even ask an AI like Gemini 2.5 Pro to generate a basic setup for you.
a
Yes , can you share the Code , thankss
Thanks bro
🫡 1