I would like to create a page with two fields and ...
# suitescript
v
I would like to create a page with two fields and a button (button connecting a script). how to do this using suitelet? Could anyone please help?
n
Mate, that's a very broad request. You need to look at the help on script types and understand how to create a form based SuiteLet. Broadly and non specifically speaking in the Suitelet you : define a form add the field(s) to the form add the button to the form create a client script with your button logic in a function. on the form define the path to the client script. ensure your button is defined with the function defined in the client script. You typically code for the POST and GET actions with the GET being what happens when the page loads and the POST when you submit the page, if that's what you do.
v
ok thank you
is page and form same?
or anything like page is available in suitelet?
n
form is essentially a page
Here's an example of a Form based SuiteLet I was working on earlier:
v
yes this is like what i want . how to create this using scripting?
could you please send me this form coding if you dont mind?
n
I will not be sharing the whole code, no, the code is not mine to share it's my employers. I have DM'd you some details to get you started though and happy to guide you if you're prepared to help yourself and look at the help sections and other resources too.
Check your messages.
The "Custom Forms" section will get you started