You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A.prototype.removeLastField = function() {
var t = !1,
e = this,
r = this.d.stage,
o = r.getElementsByClassName("form-field");
var lastId = e.data.lastID;
var lastIdNumberSplit = e.data.lastID.split('-');
var lastIdNumber = lastIdNumberSplit[lastIdNumberSplit.length-1];
var realLastId = "";
for(i=0; i < lastIdNumberSplit.length; i++){
if(i == lastIdNumberSplit.length-1){
realLastId += parseInt(lastIdNumber) -1;
break;
}
realLastId +=lastIdNumberSplit[i];
realLastId += '-';
}
var i = document.getElementById(realLastId),
s = $(i);
return i ? (s.slideUp(250, function() {
if (s.removeClass("deleting"), s.remove(), t = !0, e.save(), !r.childNodes.length) {
var A = r.parentElement;
A.classList.add("empty"), A.dataset.content = f.default.current.getStarted
}
}), document.dispatchEvent(u.default.fieldRemoved), t) : (console.warn("Field not found"), !1)
},
How configure number of max fields to user add.
The text was updated successfully, but these errors were encountered: