Question T12499
Visible to All Users

How to create a custom question based on a dynamic field type

created 2 years ago (modified 2 years ago)

[Ticket cloned from T12489: Survey form not Rendering Custom Added Questions]

Also I want to know why my custom questions type become same as of the the name. I want to make the type dynamically as per my requirement as following.

JavaScript
ComponentCollection.Instance.add( name: defaultFieldName, title: defaultFieldName, questionJSON: { type: this.surveyFieldType, }, });
Show previous comments (6)

    I think this issue is because of dot in name: "dbo.read.class.classname". I am creating the components dynamically and I don't want to remove the dot from the names of these components. Can you please help out in this regard.

      Hello,
      The component name should not include ".". Please write a function that will replace dots with spaces or any other symbol. For example you can convert it to "dbo-read-class-classname".

      Thank you,
      Andrew
      SurveyJS Team

        Thank You