AnsweredAssumed Answered

Trouble in using the fields repositioning tool

Question asked by Thomas Morgadinho Pascoa on Sep 26, 2018
Latest reply on Oct 3, 2018 by Thomas Morgadinho Pascoa



I've been experimenting Sanford Whiteman's MktoForms2 :: Override Field Order in order to put our opt-in fields below the PP fields & submit button.


I'm no developer, yet I managed something out with the tool:


Problem is, there is not enough space between the submit button and the first optin field and I have no idea how to do that in javascript. I tried \n, \r and <br> but it's a no go.


Here is the code I'm using on my test LP:


<script id="teknklFormsPlus-tag-0.2.2" jive-link-external-small" href="/" rel="nofollow" target="_blank">"></script>
<script id="teknklFormsPlus-reorder-0.2.3" jive-link-external-small" href="/" rel="nofollow" target="_blank">"></script>
MktoForms2.whenRendered(function(form) {
var formEl = form.getFormElem()[0],
submitButtonRow = formEl.querySelector(".mktoButtonRow");

var fieldOrder = [

FormsPlus.reorderFields(form, fieldOrder);

// var fieldOrder = ["ArchiveMarketoLastDT__c","FirstName","Email","LastName"];
// FormsPlus.reorderFields(form, fieldOrder);

// var fieldOrder = [submitButtonRow, "FirstName", "Email","Website"];
// FormsPlus.reorderFields(form, fieldOrder);

// FormsPlus.reorderFields(form, [], true);


Also, the live result:


Thanks for the tips you will be providing!