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
/*
New go to prev btn
Step 1: Add a button to the form with ID == 'prevBtn'
Step 2: Add this code below inside the block - FForm.prototype._initEvents = function() { }
*/
var prevBtn = document.getElementById('prevBtn')
prevBtn.addEventListener('click', function() {
if (!self.current == 0) {
self._nextField(self.current - 1)
}
});
@einarberglund Thank you for providing this solution, I gave it a try but as soon as I go back within the form the survey breaks and in the console it shows several errors too. Does that happen for you to or is it working fine?
Activity
[-]Help with back/previous[/-][+]Help with back/previous function[/+]einarberglund commentedon Dec 27, 2019
Just add this code below to get a prev btn! :-)
captainscorch commentedon Dec 31, 2019
@einarberglund Thank you for providing this solution, I gave it a try but as soon as I go back within the form the survey breaks and in the console it shows several errors too. Does that happen for you to or is it working fine?
einarberglund commentedon Jan 2, 2020
@captainscorch No worries, I do not get any errors at all! I have however modified the Form quite a lot!