Skip to content

Commit

Permalink
Merge pull request #8676 from surveyjs/bug/6894-remove-req-title-layo…
Browse files Browse the repository at this point in the history
…ut-option

Fixed #6894 - Hide the questionTitlePattern: "requireNumTitle" option from the Form Builder UI
  • Loading branch information
andrewtelnov authored Aug 13, 2024
2 parents 2204abe + 6e9caea commit baa81e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/survey-core/src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2513,10 +2513,10 @@ export class SurveyModel extends SurveyElementCore
value: "numRequireTitle",
text: num + " " + this.requiredText + " " + title
});
res.push({
value: "requireNumTitle",
text: this.requiredText + " " + num + " " + title
});
// res.push({
// value: "requireNumTitle",
// text: this.requiredText + " " + num + " " + title
// });
res.push({
value: "numTitle",
text: num + " " + title
Expand Down
8 changes: 4 additions & 4 deletions packages/survey-core/tests/surveytests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12724,10 +12724,10 @@ QUnit.test("Survey.getQuestionTitlePatternOptions()", function (assert) {
value: "numRequireTitle",
text: "# 1. (*) Question Title",
},
{
value: "requireNumTitle",
text: "(*) # 1. Question Title",
},
// {
// value: "requireNumTitle",
// text: "(*) # 1. Question Title",
// },
{
value: "numTitle",
text: "# 1. Question Title",
Expand Down

0 comments on commit baa81e9

Please sign in to comment.