Questions tagged [surveyjs]

SurveyJS is an open-source JavaScript library for creating surveys.

SurveyJS is an open-source JavaScript library for creating surveys.

148 questions
1
vote
1 answer

surveyjs validation not hitting backend, nothing in dev tools network tab, text box works as normal

The following is json taken from my surveyjs implementation. Everything works properly in the 10 page survey except for page1 shown below. It loads fine and acts just like a text box should however, it should check with…
Brént Russęll
  • 756
  • 6
  • 17
1
vote
0 answers

Math Rendering in SurveyJS (KaTeX or MathJax)

I'd like to show math in my survey. Has anybody done this before and can explain a way how to achieve this? I have not found any helpful information on this in the SurveyJS documentation or elsewhere.
kassbohm
  • 31
  • 3
1
vote
1 answer

Is there a way to redirect to an external URL if the user answered a particular choice? SurveyJS

I have a radiogroup question in my SurveyJS json, and I want to redirect the user to another page if they choose a particular choice from that question. Otherwise, I want them to keep taking the survey. Is that possible? (I'm using react/next.js to…
letie
  • 704
  • 2
  • 10
  • 20
1
vote
1 answer

Is it possible to move the Validation Panel in SurveyJS below each question in the designer?

I am trying to see if its possible to have the validation panel (the one that usually shows up on the right side of the editor with options like Required Error message etc) show below each question in the designer tab. Thanks in advance
M-B
  • 319
  • 2
  • 9
1
vote
2 answers

The `survey-react` gives an error with `this.addEvent`

I inherited a react project and I can't figure out how to use survey-react module. I keep getting this error at http://localhost:3000/ Uncaught TypeError: this.addEvent is not a function node_modules/survey-react/survey.react.js:2582 2579 | *…
John
  • 32,403
  • 80
  • 251
  • 422
1
vote
1 answer

Append Element to an Existing Element React

I'm creating a survey with SurveyJs. In doing so, I'm looking to create a button to add to every question title. I've been able to do the following with Javascript but I'm looking to essentially do the same thing with React. Rendering the survey…
Adam
  • 2,384
  • 7
  • 29
  • 66
1
vote
1 answer

SurveyJs with Laravel 8 without Larvel-surveyjs package

I want to create a survey app for my client for this I select surveyjs library to build the app. I have created all tables like Survey, Questions, Answers, and Options now I want to pass dynamics questions and answers from database like public…
Atif Rauf
  • 39
  • 1
  • 7
1
vote
1 answer

Surveyjs: getting the previous question title for question generation

I am trying to create a survey based on Surveyjs. And I am thinking about obtaining the previous question titles to generate questions. For example, the first two questions are 'do you like reading' and 'do you like writing'. If the answers are…
Savannah
  • 11
  • 1
1
vote
1 answer

implementing tagbox widget in functional components

i have been working on creating surveyjs form in reactjs using functional components.Everything else fits perfectly but the issue is regarding restfull tagBox widgets. there is a good example to use it in class component…
1
vote
1 answer

How to add an 'image' property to questions in SurveyJS Creator?

In our application, the surveys that we create need to support an 'easy read' format whereby an image may be attached to any question, to be displayed alongside the question text. I can't see a way to do this directly via the SurveyJS API…
HappyDog
  • 1,230
  • 1
  • 18
  • 45
1
vote
1 answer

Continue questions from where I left in SurveyJs

Every time user refreshes the page the survey starts over in surveyjs. Is there any possibility to continue from where he left? I am using surveyjs with React (Nextjs). Thank you!
AWIXOR
  • 406
  • 4
  • 15
1
vote
1 answer

Sharing data between questions – cannot produce different results for second business

I'm working with the 'share data between questions' example on SurveyJS. Instead of 'employers', I'm asking for business names and then go on to ask for the opening hours of each business. To replicate the issue you would input 2 or more businesses.…
1
vote
1 answer

Regex - Match only if input does not contain all letters

I understand the regex used to match if it contains all letters is ^[a-zA-Z]+$ so I thought a negation of this regex would be the answer and tried ^(?!^[a-zA-Z])+$ but it doesn't seem to work. To provide some context, I'm creating a basic form using…
John Evans Solachuk
  • 1,953
  • 5
  • 31
  • 67
1
vote
1 answer

Surveyjs: choicesVisibleIf based on item property

Is it possible to enable/disable element in Dropdown based on item properties? var json = { questions: [ { type: "dropdown", name: "car", title: "What car are you driving?", isRequired: true, colCount: 0, choices: [ …
1
vote
1 answer

how to use surveyjs with react and typescript

Are there any code samples that show how to use Surveyjs with React and TypeScript? I tried importing it into my project and using the sample code from here. https://stackblitz.com/edit/surveyjs-react-stackoverflow45544026 I got a module parse…
Mikutus
  • 83
  • 1
  • 10
1
2
3
9 10