surveyjs / survey-creator

Scalable open-source survey software to generate dynamic JSON-driven forms within your JavaScript application. The form builder features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.
https://surveyjs.io/open-source
Other
896 stars 370 forks source link

Problema ao adicionar Título do Formulário #5028

Open elizacosta22 opened 8 months ago

elizacosta22 commented 8 months ago

Estou criando um formulário sem utilização de código, no momento da criação é disponibilizado um Título principal, e depois um título para cada página, porém esse título principal deveria ser disponibilizado para todas as novas páginas criadas, é como se fosse o nome do documento, quando o documento é salvo deveria abrir um novo e aparecer novamente um novo documento com novo título principal, e não é o que acontece, quando salvo o formulário ele simplesmente fica lá, não deveria "sair" e aparecer um novo?

JaneSjs commented 8 months ago

Hello @elizacosta22, From what I gather, you are creating a form using the no-code Survey Creator tool. A survey has the main title which appears on top of a form, and titles for individual pages. When you create a survey within a Survey Creator, the survey and page titles are saved to a survey JSON. Consider this example:

{
 "title": "Test Survey",
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "dropdown",
     "name": "question1",
     "choices": [
      "Item 1",
      "Item 2",
      "Item 3"
     ]
    }
   ],
   "title": "Page 1"
  },
  {
   "name": "page2",
   "elements": [
    {
     "type": "text",
     "name": "question2"
    }
   ],
   "title": "Page 2"
  }
 ],
 "showQuestionNumbers": "off",
 "showPreviewBeforeComplete": "showAllQuestions"
}

Therefore, survey and page titles are basically defined within a survey JSON. As soon as you reset the creator.text / creator.JSON property, survey and page titles should be reset. However, I suppose that for some reason, a survey title persists after you save a survey and load a new survey definition. Is it correct? Could you share any demonstration of the issue?

Thanks

elizacosta22 commented 8 months ago

Olá bom dia.. exatamente isso. Quando salvo a pesquisa ela não abre uma nova, e sim continua aparecendo para criar mais páginas, sendo assim o título principal da pesquisa não fica disponibilizado novamente. No caso o Título com o nome "Início" que eu estou me referindo.

https://github.com/surveyjs/survey-creator/assets/134229355/3f4856a8-74c4-424a-996d-e4fed74309b3

elizacosta22 commented 7 months ago

Bom dia, conseguiu visualizar o video??

JaneSjs commented 7 months ago

Hello @elizacosta22, Thank you for sharing the video. I reviewed it, however, I'm afraid I do not completely follow. In your survey, I see that the title is set to "Inicio" (please accept my apologies if I misspelled the word). In the following screenshot, a survey title is Inicio, and survey pages also have their titles defined. For instance, the first page has the Candidatura title: image

Would you please clarify what is the issue with this title? If you're talking about the following Tabbed View, please note that SurveyJS doesn't offer such a tabbed view out of the box. Is it your custom view? image

For me to move forward and assist you in the most efficient manner, pleae share a problematic survey definition and elaborate on the expected results.

P.S. I'm afraid that I don't speak Portuguese. I would appreciate it if you continue our conversation in English. Thank you for your understanding.

elizacosta22 commented 7 months ago

Good morning, that's exactly it, I would like to create guides, the application part is "inside" at the beginning, I would like to create other titles within a main title

elizacosta22 commented 7 months ago

Há a possibilidade de colocar duas ou mais páginas em uma só? Pois quando clica para colocar um novo título automaticamente é gerada uma nova página.

chroda commented 7 months ago

Hello @JaneSjs, I working with @elizacosta22 in the project and was informed about the issue today.

What we need is a way to have Steps the the survey. She will have 5pages of questions, but to go to each, should be by tabs. So [Step1] [Step2] [Step3] [Step4] [Step5] i.e.: image

Working as a grouper for the forms. Is that possible? If so can you share the page, jsfiddle or code with me? (would be better a visual solution already)