This topic contains 2 replies, has 0 voices, and was last updated by ironside 7 years, 8 months ago.
-
AuthorPosts
-
david.smith- Contributions: 0
- Level 1
- ☆
I’m trying to create a single column form using a suitelet. I’m not sure if this is just related to SS2.0 but it’s putting a blank column to the right with everything I’ve tried. So I get my single column form but it only takes up half the page space.
Basically I have a select field followed by 2 inline HTML fields. Here is the code I’ve tried. Anyone else have issues with this or better yet, a solution?
Thanks!
Code:
if(request.method == ‘GET’){
// create the form
var form = serverWidget.createForm({
title: “Funding Request”
});
form.addSubmitButton({
label: “Create Invoice”
});
//form.clientScriptModulePath = ‘SuiteScripts/SWK/somejavascriptfile.js’; (– this not working yet)
form.clientScriptFileId = ‘1077448’;/*************** Client information ***********************/
var clientFldGrp = form.addFieldGroup({
id : ‘clientfldgroup’,
label : ‘Client Information’
});
//clientFldGrp.isSingleColumn = true;var clientFld = form.addField({
id : ‘custpage_client’,
type : serverWidget.FieldType.SELECT,
label : ‘Client’,
container: ‘clientfldgroup’
});
//clientFld.breakType = serverWidget.FieldBreakType.STARTCOL; // STARTCOL STARTROW NONEvar searchDataTableFld = form.addField({
id : ‘custpage_search_datatable’,
type : serverWidget.FieldType.INLINEHTML,
label : ‘Search HTML’,
container: ‘clientfldgroup’
});
//searchDataTableFld.breakType = serverWidget.FieldBreakType.STARTCOL;var openPODataTableFld = form.addField({
id : ‘custpage_po_datatable’,
type : serverWidget.FieldType.INLINEHTML,
label : ‘PO HTML’,
container: ‘clientfldgroup’
});
//openPODataTableFld.breakType = serverWidget.FieldBreakType.STARTCOL;… and the script goes on to set the default values of the html, etc., etc., etc.
This is a cached copy. Click here to see the original post. -
david.smith- Contributions: 0
- Level 1
- ☆
I have a work around but I don’t like it because I’m manipulating the DOM.
-
ironside- Contributions: 0
- Level 1
- ☆
My work around is to use Aurelia instead of doing custom applets in native suitescript. Their ‘forms’ support is way too primitive for modern web sites imho.
david.smith replied on 09/02/2016, 10:38 AM: I try to keep it "looking like NetSuite" when I can. Otherwise I’ll use jQueryUI. -
AuthorPosts
You must be logged in to reply to this topic.