I would like to add a custom element after/before every question to display a horizontal rule or similar to separate each questions from the previous/next.
Is there a recommended way of doing this?
I would like to add a custom element after/before every question to display a horizontal rule or similar to separate each questions from the previous/next.
Is there a recommended way of doing this?
Hi Alex,
I am trying to use the adorners based on the examples on the site, however am struggling to get them to render.
So far I have the following, but this isn't working for me:
JavaScriptsurveyPDF.onRenderQuestion.add(function (survey, options) {
var flatHtml = options.repository.create(survey, "<hr/>", options.controller, "html");
flatHtml.generateFlats(options.point).then(function(hrBrick) {
options.bricks.push(hrBrick);
resolve();
});
}
Hello,
Method repository.create
accepts SurveyModel's questions as second parameter, not string with value. Here is live sample in plunker how to add hr
tag between questions in SurveyPDF
Thanks, Alex
SurveyJS Team