Comments (3)
Just add this code below to get a prev btn! :-)
/*
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)
}
});
from fullscreenform.
@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?
from fullscreenform.
@captainscorch No worries, I do not get any errors at all! I have however modified the Form quite a lot!
from fullscreenform.
Related Issues (8)
- Add element or skip one step HOT 1
- Question: Directly open the Review section (edit mode use-case) HOT 1
- Is it possible to remove the dot navigation and just use back and forth? HOT 7
- Continue button isn't responsive HOT 1
- Form post instead of get HOT 1
- Is there a support for radio and checkbox input types?
- Form in WordPress
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fullscreenform.