This topic contains 2 replies, has 0 voices, and was last updated by ironside 8 years, 2 months ago.
-
AuthorPosts
-
September 1, 2016 at 3:37 pm #1840
david.smithI’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. -
September 1, 2016 at 5:15 pm #1841
david.smithI have a work around but I don’t like it because I’m manipulating the DOM.
-
September 2, 2016 at 10:33 am #1842
ironsideMy 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.