im new to using this module how can i make sure ...
# suitescript
s
im new to using this module how can i make sure the submit button is under the fields
Copy code
"N/ui/serverWidget"
b
suitescript offers no method to control the location of the submit button
s
Thanks
How do I use the form data to submit to external api
b
the form generated by a suitelet submits back to the suitelet
write code to make a request to your external api when the suitelet received a POST
s
So if the sutielet has GET request do A if POST do B
b
yes
m
It's been a while but from memory, if you add a field group with single column that caused the submit button to show differently.
s
So using field groups helps?
m
Test it. Can't remember the details so clearly but I do recall using a field group to change the submit button position
s
I will tmmrw
i have data that is in Prams of GET to suitlet how can i add that to the form for the params of my POST request
s
If you have data in GET you can just put it in a hidden field (if you don't want to display it), data in any field will be there on POST
s
where do add the data for this
Copy code
var test = form.addField({
        id: "orderid",
          type: serverWidget.FieldType.TEXT,
        label: "orderid",
      });
        test.updateLayoutType({ layoutType: serverWidget.FieldDisplayType.HIDDEN });
i should use dfault value ?
👍 1