Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Survey builder application useing Survey.js React and Redux

Notifications You must be signed in to change notification settings

imtiaz101325/survey-react-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Survey Builder

ToDo

  • Write stories for all components

State Shape

{
  pages: [1, 2]
  entities: {
    pages: {
      1: {
        name: ,
        navigationButtonsVisibility: ,
        title: ,
        visibleIf: ,
        questions: [3, 4]
      }
    },
    questions: {
      3: {
        types: ,
        choices: [5, 6],
        validators: [7, 8],
      }
    },
    choices: {
      5: {
        value: ,
        text:
      }
    },
    validators: {
      7: {
        ...
      }
    },
    triggers: {
      9: {
        ...
      }
    }
    ...
  },
  options: {
    surveyLevel: {
      onlyone : {
      clearInvisibleValues: true,
      completeText: "completeText",
      completedHtml: "completeHTML",
      cookieName: "cookieName",
      focusFirstQuestionAutomatic: false,
      goNextPageAutomatic: true,
      locale: "fr",
      mode: "display",
      pageNextText: "pageNextText",
      pagePrevText: "PagePrevText",
      questionStartIndex: "quentionStati",
      questionTitleLocation: "bottom",
      questionTitleTemplate: "sfafs",
      requiredText: "*sdf",
      sendResultOnPageNext: true,
      showNavigationButtons: false,
      showPageNumbers: true,
      showPageTitles: false,
      showProgressBar: "top",
      showQuestionNumbers: "onPage",
      showTitle: false,
      storeOthersAsComment: false,
      surveyId: "sdfas",
      surveyPostId: "sdfas",
      title: "sdfasdf",
      }
    },
    pageLeve: {
      pageId: {
       name: "PageLevel",
       navigationButtonsVisibility: "show",
       title: "pageTitiel",
       visibleIf: "visibleIfLogic",
      }
    },
    questionLevel: {
      questionId: {

      }
    }
  }
  UI: {
    modal: {
      isOpen:  PropTypes.bool,
      // boolean to control the state of the popover
      toggle:  PropTypes.func,
      // callback for toggling isOpen in the controlling component
      size: PropTypes.string,
      // control backdrop, see http://v4-alpha.getbootstrap.com/components/modal/#options
      backdrop: PropTypes.oneOfType([
        PropTypes.bool,
        PropTypes.oneOf(['static'])
      ]),
      keyboard: PropTypes.bool,
      // zIndex defaults to 1000.
      zIndex: PropTypes.oneOfType([
        PropTypes.number,
        PropTypes.string,
      ]),
      className: PropTypes.string,
      wrapClassName: PropTypes.string,
      modalClassName: PropTypes.string,
      backdropClassName: PropTypes.string,
      contentClassName: PropTypes.string,
    },
    workArea: {

    },
    surveyTabs: {
      selectedTab: number
    }
  }
}

Type of Survey

  • Single Input
  • Radio Group
  • Dropdown
  • Checkboxes
  • Rating
  • Comment

Todo

  • Show buttons css

About

Survey builder application useing Survey.js React and Redux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published