179 questions
4
votes
1
answer
58
views
Regex validator with expression [closed]
I am trying to validate the input based on previous selection using SurveyJS. The input in last section of Duration should depend on previous selection of Days or Months or Years.
If I keep only ...
0
votes
1
answer
61
views
SurveyJS - How to restrict a month input so users can’t select a future month?
I'm building a survey in surveyJS and am using a single line input -> Month question type. For regular date pickers ("inputType": "date"), I can use the following just fine to ...
0
votes
1
answer
57
views
SurveyJs in Angular - overriding the default layout of stock questions
I want to render the SuveyJS form I have using the existing form layout I have, CSS in this case alone will not cut it and I need to be able to render the question in a specific way (using specific ...
-1
votes
1
answer
36
views
Paragraph inputType, similar to text, on more lines
I am programming a survey in SurveyJS. One question has "type": "text" and shows an input field over one line. Users may write multiple lines, so I would like a paragraph type, but ...
-1
votes
1
answer
41
views
"Loop and merge" with questions on separate pages [closed]
(Follow-up on Make number of rows in a matrix equal to a previous answer .) I am looking for a SurveyJS code example, similar to the "Loop and Merge", with one page of answers per entity (...
0
votes
1
answer
46
views
Make number of rows in a matrix equal to a previous answer
I am writing a survey in SurveyJS and I would like the number of rows in a survey to equal a previous answer. It would be something like this, except that this fails:
const surveyJson = {
"...
0
votes
0
answers
55
views
Survey Js, Survey Creator custom class - panel model
I'm working in SurveyJS, specifically in survey-creator. I want to create a custom class that extends panelmodel, but when trying to add it to survey-creator, it gives the error Uncaught (in promise) ...
0
votes
1
answer
61
views
How to work around a TypeError due to an undefined variable in SurveyJS export to PDF?
I am trying to use the SurveyJS "Export to PDF" feature, described here, on a form with several pages. I follow the steps for a JavaScript application (importing Javascript libraries in HEAD,...
-1
votes
1
answer
71
views
survey-react-ui onUploadFiles not triggering on choose file button file picked
I am using survey-react-ui version 1.12.27, all other events are triggering but onUploadFiles event is not triggering.
When i select file using "choose file" button event does not trigger. ...
0
votes
1
answer
49
views
How to use SurveyJS Custom Item Template in Svelte?
In the documentation JS example JSX syntax is used which doesn't seem to be easily transferred to a .svelte file..?
The vue example registers a component
// main.js
const app = createApp(App);
app....
0
votes
1
answer
55
views
SurveyJS Bug? Question Name = '0' causes options to not show in logic
Naming my question '0' (zero) results in me not being able to select a chosen option in Logic.
Of course I could easily change this, however this should match the screen ID where 0 is the landing ...
0
votes
1
answer
158
views
Dynamically change HTML column in Matrix based on row information in SurveyJS
I want to create a SurveyJS matrix with rows that contain a text & HTML element. Thus, the HTML content should change in each row. The Survey is a reasoning test that contains a text statement and ...
0
votes
1
answer
77
views
How to restrict re-evaluation of expressions for only those change in values on which the expression depends in survejs?
I am currently using surveyjs within a react app. I have a custom function that returns an uuid value and I invoke that function using an expression in the surveyjs JSON. Now, I have observed the ...
0
votes
1
answer
44
views
How to change the page if time has elapsed despite validation errors?
Currently, if a question has a validator or is required, the page will not change despite the time limit elapsing. The common scenario is that the user should be able to end a page faster but only if ...
0
votes
1
answer
60
views
How to have comment + multiple file upload for each question?
When designing a survey, how can I allow the end user to upload multiple files and write a comment for every question?
0
votes
0
answers
19
views
Scrolling down the list of translation items often gets stuck before reaching the end
Describe the bug
When using the Translation tab in multiple pages mode, with the "Used Strings Only" filter enabled, scrolling down the list of translation items often gets stuck before ...
2
votes
1
answer
280
views
Using html in question titles in survey.js
We are creating a form with survey.js. However, we will add a checkbox for mandatory choices regarding kvkk and we need to show some text in the title for the explanations to be seen. We also want to ...
0
votes
1
answer
50
views
How to watch a inner variable of custom question type in SurveyJS?
question
I have defined a customer question type named cascadedropdown, the code is as follows :
ComponentCollection.Instance.add({
// A unique name; must use lowercase
name: 'casecadedropdown', //...
0
votes
1
answer
64
views
How to get the first dropdown answer's value dynamically?
I have defined a custom question type, which name is cascadedropdown:
ComponentCollection.Instance.add({
// A unique name; must use lowercase
name: 'cascadedropdown', // A display name used in the ...
1
vote
2
answers
76
views
Referencing correctAnswer in a separate field
I want to reference the 'correctAnswer' of a radio-button group question and populate the value into another field.
So the field will show the correctAnswer of the first field, regardless of what the ...
1
vote
1
answer
175
views
SurveyJs with QuillJS and custom module counter
I implemented SurveyJS Creator with QuillJS in Angular following the documentation, and everything was working fine. Then, I decided to add a custom module to the Rich Text to count the number of ...
0
votes
1
answer
93
views
correctAnswers in Surveyjs not working on completedBeforeHTML
I am using Surveyjs to set up a quiz but have this problem on the completed page:
When using the variable correctAnswers to show the number of correct answers on the completed page it does not work on ...
1
vote
2
answers
896
views
Can't resolve 'datatables.net/js/jquery.dataTables.js'" in Vue and React Project (Surveyjs quickstart template)
I'm working on two separate projects, one using Vue.js and the other using React. Both projects are based on quickstart templates provided by SurveyJS. After following the setup instructions and ...
2
votes
1
answer
392
views
Populate SurveyJS file upload with remote data
I'm using SurveyJS to create a multi step form for users to check their existing profile. The survey is pre-populated with values from an API, so the user can check those and submit changes. Therefore,...
-1
votes
2
answers
320
views
Undefined error while loading Survey-creator-core using RequireJS
I am using requireJS in my project and want to load survey-core and survey-creator-core.
survey-creator-core has a dependency on survey-core when i checked the js file of survey-creator-core.
I got ...
0
votes
1
answer
51
views
SurveyCore.Model is not a constructor
import * as Survey from 'survey-core'
var surveyModel = new Survey.model(myJson)
Survey is coming to be as undefined causing an error TypeError: Survey.Model is not a constructor
I have imported ...
0
votes
0
answers
32
views
Auto Expand and Checkbox Detail Row
So is there a way to have a check box list and if the check box is checked a detail row is automatically expanded to enter answers for a supporting question.
What I have is the closest I can get but ...
1
vote
1
answer
98
views
Import a surveyJS custom theme in svelte code
Morning,
Since yesterday, I have been trying to add a custom theme by following the information given on the surveyJS site.
I'm developing a site with svelte, I managed to import the form, but it's ...
0
votes
1
answer
287
views
How to set a default value for a specific cell in a matrix dropdown question in Survey JS?
`I'm working on a survey using SurveyJS, and I need help configuring a matrix dropdown question. My goal is to set a default value for a specific cell in this matrix.
Problem Description
In my survey, ...
0
votes
1
answer
103
views
Copying a dynamic panel from one checklist to another in SurveyJS
For one of our customers we set up Dynamics 365 CE CRM and also integrated SurveyJs into it. They want to create checklists using SurveyJS and to store them in Dynamics 365CE. Now I'd like to know if ...
0
votes
1
answer
85
views
switch between validation mode on surveyjs
in my current surveyjs form I validate the errors at the end just when the user clicks on the send button.
but for a particular need I want to add a question in the first page and this question must ...
0
votes
1
answer
55
views
Can I override survey field value with one from URLSearchParams?
Is there a way to override a field value with one parsed from URLSearchParams?
I'd like to fill an hidden field if a specific parameter is passed by the URL.
E.g.
JSON part
{
"type": "...
0
votes
1
answer
254
views
Survejs model - I am looking for complete object model for survey json
I am trying to implement the backend in c# for loading and saving surveys. I have seen the sample and it is using JSON string, is there documentation available for objects and properties that will ...
0
votes
1
answer
59
views
In SurveyJS, when an NPS type question (using smiley faces or 1 to 10) is displayed on a mobile device, it turns into a dropdown. Can this be avoided?
I'm using surveyJS to create an NPS question (from 0 to 10), using numbers in one scale and smiley faces in the other. However, when viewed from a mobile device, it turns into a dropdown and the ...
0
votes
1
answer
300
views
Survey 123: Need help modifying a javascript to get X value from json file based on lat long of geopoint
I am trying to get a script together that would based on a geo point lat long return the label of a line segment by proximity. This could also be the devices own lat long as soon as the survey opens ...
0
votes
1
answer
121
views
What is the shortest and easiest way to pass custom data to survey js result?
I would like to pass form id to my backend but i couldn't find an easier way.
I tried to modify result and include my custom data like this
result.data.formid = myformdata.formid;
but it doesn't add ...
0
votes
1
answer
91
views
in Survayjs Creator : is there any way we can get currently focused ItemValue in choices question like QuestionDropdownModel , QuestionCheckboxModel
i want to surveyjs creator event to add extra data to currently focused choice itemValue of choice questions and save that surveyjs questions with extra data added to currently focused choice ...
0
votes
1
answer
55
views
I need to add "Import Schema" button to the Survey Creator
I want my users to be able to easily create new survey forms from a library of existing templates. I don't see a way to enable this from within the Survey Creator interface. Is this already built in?...
0
votes
1
answer
167
views
Switching Between Themes at Runtime
The documentation says that you can use multiple themes by just including the Javascript files of the theme and the calling survey.applyTheme():
<!-- In classic script applications: -->
<head&...
0
votes
1
answer
75
views
Is there a way to change the transparency for a matrix question in Survey.js to show the background as per other question types?
Is there a separate setting in the theme to set the transparency for matrix questions in Survey.js?
See the attached image - I am unable to set the transparency like I can for other question types.
...
0
votes
1
answer
99
views
What prop or function does React SurveyJS use to achieve different rendering for Survey Creator designer vs prieview or Form Library
I am trying to create a custom React element and renderer for SurveyJS Survey Creator, I would like it to render differently in the survey designer so that I can control the properties from the ...
1
vote
0
answers
55
views
Migration to Survey Creator V2 over React
I am working on Migration to Survey Creator V2 on reactJs 16 I followed all the migration steps which are documented but getting TypeError: Cannot read properties of undefined (reading '...
0
votes
0
answers
219
views
Cant' navigate through the pages of a survey using surveyJS
I'm using the library SurveyJS in my angular project. I need to be able to navigate through pages programmatically.
My first attempt was:
this.survey.currentPageNo = 5; //navigate to page 5.
...
0
votes
1
answer
117
views
How to modify SurveyJS page property after timeout (minimum time)?
I'm trying to set minimum time for a question in a SurveyJS survey. I want the navigation buttons to appear only after a certain time (3 seconds in the example). Yet when I try to modify ...
-1
votes
1
answer
76
views
Auto populate address details when user type from aws location service for single line text question using SurveyJS Survey Creater
Is it possible to facilitate the below using the SurveyJS Survey Creator module?
Is it possible to introduce AWS location service to a single-line text question for address lookups
For the populated ...
2
votes
1
answer
474
views
The method applyTheme dosen`t exist in surveyjs. How to change theme or css in a survey react nodejs
I’m trying to change the apperance of a survey in surveyjs forms library.
According to document I have to use survey.applyTheme() but there are no such thing.
I’ve imported the defaultV2.min.css
...
1
vote
1
answer
169
views
How to localize multiple choice questions in SurveyJS?
I use SurveyJS to run surveys. I read the example on localization and implemented it. I can localize a title with:
"title": {
"default": "During the past week ...",
&...
1
vote
1
answer
141
views
SurveyJS: How to manipulate/organize the answers JSON format to group data points?
I am trying to organize the SurveyJS output JSON in certain way to minimize the amount of data cleaning I need to do on backend.
I am hoping to change this:
answers:{
answer1:'hello"
...
0
votes
1
answer
457
views
Advice: CustomWidget or adjust CSS? Surveyjs with Next.js, Material UI v5 (custom theme)
I would appreciate some advice. This is the current situation:
nextjs app with material ui v5 which uses a custom theme
this theme gets used in multiple apps, so the look and feel are always the ...
0
votes
1
answer
577
views
Displaying the surveyjs results in a web page
I have my surveyjs results stored in a database. Each survey response has been stored in a string json-like format. Now I want to display it back in a read-only (or editable) form like the original ...