![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
survey-creator-react
Advanced tools
Use SurveyJS Creator to create or edit JSON for SurveyJS Library.
Survey Creator V2 for React is a visual survey designer / form builder for the React version of SurveyJS.
NOTE: This package contains Survey Creator V2. If you are looking for information on V1, refer to the survey-creator directory. Differences between these two versions are described in the following help topic: SurveyJS Creator V2: What's new. For information on how to migrate to V2, refer to the Migration Guide for SurveyJS Creator - from V1 to V2 article.
npm install survey-creator-react --save
Create a new component and use it in your React application:
import { Component, Fragment } from "react";
import { SurveyCreatorComponent, SurveyCreator } from "survey-creator-react";
// Import CSS files for SurveyJS (survey-core) and Survey Creator
import "survey-core/defaultV2.min.css";
import "survey-creator-core/survey-creator-core.min.css";
export class SurveyCreatorWidget extends Component {
constructor() {
super();
// Instantiate Survey Creator
this.creator = new SurveyCreator({ showLogicTab: true });
// Enable auto save
this.creator.isAutoSave = true;
// Save the survey definition JSON to your web service
this.creator.saveSurveyFunc = (saveNo, callback) => {
// Call a function on your web service to store the survey definition JSON
// As an alternative to this.creator.JSON, you can use the this.creator.text string property
// saveSurveyJSON(this.id, this.creator.JSON, () => {
// callback(saveNo, true);
// });
};
}
componentDidMount() {
// Load a survey definition JSON from you web service
// ...
// Assign the survey definition to Survey Creator
// this.creator.JSON = yourJSON;
}
render() {
return (
<Fragment>
<SurveyCreatorComponent creator={this.creator} />
</Fragment>
);
}
}
The Survey Creator (Form Builder) is not available for free commercial usage. You can find more information about licensing this product on the following page: Licenses.
FAQs
Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.
The npm package survey-creator-react receives a total of 0 weekly downloads. As such, survey-creator-react popularity was classified as not popular.
We found that survey-creator-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.