Forum Discussion
GeoffreyHarmuth
8 years agoQrew Captain
So its a little more complicated because I am using iOL.
The button contains the following code:
[iol] & "moduleSurveySave.js" & [/iol]
&
"<a class='QBU_Submit Vibrant Success'>Submit</a>"
The moduleSurveySave.js contains the following code:
(function(){
var querystring=document.location.search;
var dbid = "bk7x2wk2j";
var dbidSurveys = "bnjvqx7q9";
if (/nwr/i.test(querystring) || /a=er/i.test(querystring) || /a=FinishEditRecord/i.test(querystring) || /a=API_GenAddRecordForm/i.test(querystring)) {
$("#formFooterButtonsContainer").hide();
$(".IconOnly").hide();
$("#saveButton").hide();
$("div.btn-form-footer.btn-form-container-3btns").hide();
//removes full footer buttons in mobile
$("div.btn-form-header.btn-form-container-3btns").hide();
//removes full header buttons in mobile
$("#RedirectURL").val(dbid);
$("input[name=rl]").val("");
$("a.QBU_Submit").on("click", function(event) {
$("#saveButton").trigger("click");
});
}
})();
The button contains the following code:
[iol] & "moduleSurveySave.js" & [/iol]
&
"<a class='QBU_Submit Vibrant Success'>Submit</a>"
The moduleSurveySave.js contains the following code:
(function(){
var querystring=document.location.search;
var dbid = "bk7x2wk2j";
var dbidSurveys = "bnjvqx7q9";
if (/nwr/i.test(querystring) || /a=er/i.test(querystring) || /a=FinishEditRecord/i.test(querystring) || /a=API_GenAddRecordForm/i.test(querystring)) {
$("#formFooterButtonsContainer").hide();
$(".IconOnly").hide();
$("#saveButton").hide();
$("div.btn-form-footer.btn-form-container-3btns").hide();
//removes full footer buttons in mobile
$("div.btn-form-header.btn-form-container-3btns").hide();
//removes full header buttons in mobile
$("#RedirectURL").val(dbid);
$("input[name=rl]").val("");
$("a.QBU_Submit").on("click", function(event) {
$("#saveButton").trigger("click");
});
}
})();