In this guide, we will share an example form template to list Price Book Entry records with editable quantities. The table rows where quantity is added will create new Opportunity Line Item records on Salesforce. The additional table functionality allows for table row filtering if you have hundreds or thousands of records to display.
Form Template to import - https://app.formyoula.com/templates/import
[Guide Form] Offline Salesforce Product Table With Images.json16.4KB
Table Filter Custom JavaScript.
Multiple Fields Per Row Custom JavaScript.
set_fields_into_a_row('fc3b-91e3-9519, c6ff-eb35-2d90, 32ec-3475-d185');
// Set fields into a row function
function set_fields_into_a_row(row_fields) {
// Get row field size
var row_field_size = 12 / row_fields.split(',').length;
// Get row field component ids
var row_field_ids = row_fields.split(',').map(a => `#component-${a.trim()}`).join(",");
// Set fields into a row
$(row_field_ids)
.wrapAll('<div class="row">')
.addClass('col-xs-' + row_field_size )
.find(".input_label")
.removeClass("col-sm-2")
.addClass("col-xs-12")
.css("text-align", "left")
.next()
.removeClass("col-sm-10")
.addClass("col-xs-12");
}Total Column Custom Javascript.
For any questions, please contact us - [email protected] or the Formyoula in-app chat 🙂