How to use survey-react - 9 common examples

To help you get started, we’ve selected a few survey-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github felipemoraes / searchx-frontend / src / js / app / tasks / learning / forms / Register.js View on Github external
);
        }

        ////

        if (AccountStore.isOverSwitchTabsLimit()) {
            return (
                <div>
            );
        }

        ////

        const data = LearningStore.getRegisterInfo();
        let survey = new Survey.Model(data);

        survey.requiredText = "";
        survey.onComplete.add(this.handleComplete);

        return (
            <div>
                <div>
                    
                </div>
            </div>    
        );
    }
}</div>
github surveyjs / surveyjs_react_quickstart / src / App.js View on Github external
render() {
    var model = new Survey.Model(this.json);
    return (
      <div>
        <div>
          <img alt="logo" src="{logo}">
          <h2>Welcome to React with SurveyJS</h2>
        </div>
        <div>
          {/*If you do not want to show survey, comment the lines below*/}
          <h1>SurveyJS library in action:</h1>
          
          {/*If you do not want to show save PDF button, comment the lines below*/}
          <h3>SurveyPDF export:</h3></div></div>
github saiskee / it-works / client / src / components / Survey / Survey.js View on Github external
import "select2/dist/css/select2.css";
import "bootstrap-slider/dist/css/bootstrap-slider.css";

import "jquery-bar-rating/dist/themes/css-stars.css";

import $ from "jquery";
import "jquery-ui/ui/widgets/datepicker.js";
import "select2/dist/js/select2.js";
import "jquery-bar-rating";


import "icheck/skins/square/blue.css";

window["$"] = window["jQuery"] = $;

SurveyJS.StylesManager.applyTheme("default");

const mapStateToProps = ({session, survey}) => ({
  session,
  survey
});

const mapDispatchToProps = dispatch => ({
  logout: () => dispatch(logout()),
  getSurvey: (surveyId) => dispatch(getSurvey(surveyId))
});

class Survey extends Component {


  componentDidMount() {
    const {surveyId} = this.props.match.params;
github surveyjs / surveyjs_react_quickstart / src / App.js View on Github external
import "select2/dist/js/select2.js";
import "jquery-bar-rating";

import * as SurveyCore from "survey-core";
import * as SurveyPDF from "survey-pdf";
import * as widgets from "surveyjs-widgets";

import "pretty-checkbox/dist/pretty-checkbox.css";
//import "icheck/skins/square/blue.css";
window["$"] = window["jQuery"] = $;
//require("icheck");

export { MyQuestion } from "./MyQuestion";


Survey.StylesManager.applyTheme("default");

//widgets.icheck(Survey, $);
widgets.prettycheckbox(Survey);
//widgets.select2(Survey, $);
widgets.inputmask(Survey);
widgets.jquerybarrating(Survey, $);
widgets.jqueryuidatepicker(Survey, $);
widgets.nouislider(Survey);
widgets.select2tagbox(Survey, $);
widgets.signaturepad(Survey);
widgets.sortablejs(Survey);
widgets.ckeditor(Survey);
widgets.autocomplete(Survey, $);
widgets.bootstrapslider(Survey);

//widgets.icheck(SurveyCore, $);
github felipemoraes / searchx-frontend / src / js / app / tasks / learning / forms / Register.js View on Github external
componentWillMount() {    
        Survey.Survey.cssType = "bootstrap";
        Survey.defaultBootstrapCss.navigationButton = "btn btn-green";
    }
github felipemoraes / searchx-frontend / src / js / app / tasks / learning / forms / Register.js View on Github external
componentWillMount() {    
        Survey.Survey.cssType = "bootstrap";
        Survey.defaultBootstrapCss.navigationButton = "btn btn-green";
    }
github felipemoraes / searchx-frontend / src / js / app / tasks / components / form / Form.js View on Github external
render() {
        Survey.Survey.cssType = "bootstrap";
        Survey.defaultBootstrapCss.navigationButton = "btn btn-green";
        

        let survey = new Survey.Model(this.props.formData);
        survey.completedHtml = `<div class="message">${survey.completedHtml}</div>`;

        return (
            
                <div>
                    
                </div>
            
        );
    }
github felipemoraes / searchx-frontend / src / js / app / tasks / components / form / Form.js View on Github external
render() {
        Survey.Survey.cssType = "bootstrap";
        Survey.defaultBootstrapCss.navigationButton = "btn btn-green";
        

        let survey = new Survey.Model(this.props.formData);
        survey.completedHtml = `<div class="message">${survey.completedHtml}</div>`;

        return (
            
                <div>
                    
                </div>
            
        );
    }
github felipemoraes / searchx-frontend / src / js / app / tasks / components / form / Form.js View on Github external
render() {
        Survey.Survey.cssType = "bootstrap";
        Survey.defaultBootstrapCss.navigationButton = "btn btn-green";
        

        let survey = new Survey.Model(this.props.formData);
        survey.completedHtml = `<div class="message">${survey.completedHtml}</div>`;

        return (
            
                <div>
                    
                </div>
            
        );
    }

survey-react

survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.

MIT
Latest version published 2 days ago

Package Health Score

95 / 100
Full package analysis