Skip to content

A simpler way to add reactions to some response #200

@kandebonfim

Description

@kandebonfim

First of all, I'm in love with this project! Thanks for building this awesome library.

I'm building a form and a want to add some quick reactions to a user's response, for example:

fieldset cf-questions="Nice name, {name}!&&What kind of activity are planning to do?"
      input type="radio" name="atividade" id="intro-yes" value="yes"
      label for="intro-yes" Recreational

      input type="radio" name="atividade" id="intro-no" value="no"
      label for="intro-no" Professional
input type="text" cf-questions="Cool! We're in the same boat!" cf-conditional-atividade="yes" value="ok"
input type="text" cf-questions="Uh... We gotta a professional here!" cf-conditional-atividade="no"

The problem is that when the reaction appears, the user has to type something to move to the next question. It would be good to pass an attribute like cf-input-skip to automatically move to next step.

I know that we have addRobotChatResponse('You have reached the end of the form!') but to do this I'll have to initiate the ConversationalForm manually and seems much more complicated than just using the markup to do it...

Am I doing this right? 😬

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions