I don’t know is it the correct place to post my question or not
I’m new in ERPNext and trying to create a survey system under the Schools app in ERPNext
The Survey may be about “Course”, “Room”, “Instructor”…etc
I have this structure
– Survey (docType)
------ Type (Select represents doctype of the school module [Instructor/Room/Course]
------ Description
------ Start Date *
------ End Date *
------ Status
---- Survey Questions (Table)
------ Question Text *
------ Question Type (select Text/Multiple choice / True or False Question) *
------ Question Options (Table)
---- Survey Results/Responses (Table)
------ User which make the response *
------ Response Date/Time
------ Questions Answers (Table)
I have created these doctypes
but I have a problem
can not show the options of the answers in the survey response doctype
and I want to list all Rooms if user selected the survey type “Room”
if he choose that the survey about instructors I want to preview list of instructors … etc
I’m confused about the correct representation of my structure as doctypes
I will create a web form for the public / frontend users
but here the admin creates the survey and set the questions of the survey to be posted for public users on the website
They may be many types of users can create surveys
how can I make dynamic form generator?
I’m sorry if it is a stupid question, I’m new in ERPNext and my knowledge is very little about customization
What I suggest create a doctype for each survey which contains questions.
Create a doctype form, a dynamic which chooses dhe fields and type (this is plain javascript or you can use JS libraries).
Then based on these created data submit and create a new doctype which includes the survey questions.
I don’t know if I was very clear with the explanation.
Unfortunately, custom labeling based on value in other field is not configurable from within the Doctype. Request you to give some generic name to the field.