Skip to content

Commit 756b989

Browse files
authored
Merge pull request #12 from surveycto/issue-11
Add fallback for placeholder text
2 parents c885fa3 + 766e59b commit 756b989

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

source/Archive.zip

3.23 KB
Binary file not shown.

source/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name" : "Baseline integer field",
33
"author" : "Dobility",
4-
"version": "3.2.0",
4+
"version": "3.2.1",
55
"supportedFieldTypes": ["integer"],
66
"hideDefaultRequiredMessage": false,
77
"hideDefaultConstraintMessage": false

source/template.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
value="{{CURRENT_ANSWER}}"
4747
id="integer-field"
4848
class="response default-answer-text-size"
49-
placeholder="{{QUESTION_PLACEHOLDER_LABEL}}"
49+
{{#QUESTION_PLACEHOLDER_LABEL}}
50+
placeholder="{{QUESTION_PLACEHOLDER_LABEL}}"
51+
{{/QUESTION_PLACEHOLDER_LABEL}}
52+
{{^QUESTION_PLACEHOLDER_LABEL}}
53+
placeholder="Your answer here..."
54+
{{/QUESTION_PLACEHOLDER_LABEL}}
5055
/>
5156
{{/READONLY}}

0 commit comments

Comments
 (0)