Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Basically, the title :D

You must be logged in to vote

@Miguelklappes Although Flow Form doesn't implement this natively, we added a few new API functions which would allow you to do this manually/externally:

<template>
  <flow-form
    ref="flowform"
    v-bind:questions="questions"
    v-bind:standalone="true"
  >
  </flow-form>
</template>

<script>
  export default {
    name: 'example',

    components: {
      FlowForm
    },

    data() {
      return {
        questions: [
          ...
        ]
      }
    },
    mounted() {
      document.addEventListener('keyup', this.onKeyUpListener, true)
    },

    beforeUnmount() {
      document.removeEventListener('keyup', this.onKeyUpListener, true)
    },

    methods: {
      onKeyUpList…

Replies: 2 comments · 1 reply

Comment options

@Miguelklappes, thanks for the suggestion.
Actually, we’ve already considered that option and will probably implement it soon.

You must be logged in to vote
0 replies
Comment options

@Miguelklappes Although Flow Form doesn't implement this natively, we added a few new API functions which would allow you to do this manually/externally:

<template>
  <flow-form
    ref="flowform"
    v-bind:questions="questions"
    v-bind:standalone="true"
  >
  </flow-form>
</template>

<script>
  export default {
    name: 'example',

    components: {
      FlowForm
    },

    data() {
      return {
        questions: [
          ...
        ]
      }
    },
    mounted() {
      document.addEventListener('keyup', this.onKeyUpListener, true)
    },

    beforeUnmount() {
      document.removeEventListener('keyup', this.onKeyUpListener, true)
    },

    methods: {
      onKeyUpListener(e) {
        if (e.key === 'ArrowDown') {
          this.$refs.flowform.goToNextQuestion()
        } else if (e.key === 'ArrowUp') {
          this.$refs.flowform.goToPreviousQuestion()
        }
      }
    }
  }
</script>

We'll also add this internally as well with a configurable option in a future update.

You must be logged in to vote
1 reply
@Miguelklappes
Comment options

Thank you Spinn!

Answer selected by EkaterinaVu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.