Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
em
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ichikawa
em
Commits
278ec95f
Commit
278ec95f
authored
Jan 31, 2024
by
Kim Gyeongeun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#57291 【eモニ 1.3】条件付必須回答を設定し、回答側のフリーアンサー設定をチェックすると(該当選択肢の必須にするをチェック)、必須条件を回答してなくても入力欄に入力できる
parent
f413a53b
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
62 additions
and
10 deletions
+62
-10
src/main/java/jp/agentec/sinaburocast/csv/MemberInfoCsv.java
+3
-0
src/main/webapp/WEB-INF/view/common/enquete_mb.vm
+2
-2
src/main/webapp/WEB-INF/view/common/enquete_sp.vm
+2
-2
src/main/webapp/WEB-INF/view/common/question_disable.vm
+24
-0
src/main/webapp/WEB-INF/view/common/question_disable_sp.vm
+25
-0
src/main/webapp/WEB-INF/view/user/enquete/enquete.html
+2
-2
src/main/webapp/WEB-INF/view/user/enquete/enquete_pub.html
+2
-2
src/main/webapp/WEB-INF/view/user/enquete/enquete_web_rec.html
+2
-2
No files found.
src/main/java/jp/agentec/sinaburocast/csv/MemberInfoCsv.java
View file @
278ec95f
...
...
@@ -332,6 +332,9 @@ public class MemberInfoCsv extends AbstractCsv {
errorMessage
.
append
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.mainPcEmail"
)));
}
}
else
{
// メインPC必須チェック
errorMessage
.
append
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.mainPcEmail"
)));
}
// サブPCメールチェック
...
...
src/main/webapp/WEB-INF/view/common/enquete_mb.vm
View file @
278ec95f
...
...
@@ -73,7 +73,7 @@ $tools.getMsg("errorheader")
##<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
<input type="text" class="#he($!question.questionId)" id="#he($!answer.answerId)
" name="$answerValue" size="$!answer.freeTextColWidth" value="$!escape.html($!answer.answerValue)"
/>
<input type="text" class="#he($!question.questionId)" id="#he($!answer.answerId)
_ft" name="$answerValue" size="$!answer.freeTextColWidth" value="$!escape.html($!answer.answerValue)" #if($!question.questionInitDisable == "1") disabled #end
/>
#end
##<!-- 1:CHECKBOX answer.answerNo値を値にする。-->
#elseif($!question.controlId == "1")
...
...
@@ -86,7 +86,7 @@ $tools.getMsg("errorheader")
##<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
<input type="text" class="#he($!question.questionId)" id="#he($!answer.answerId)" name="$answerValue" size="$!answer.freeTextColWidth" value="$!escape.html($!answer.answerValue)" #if($!question.questionInitDisable == "1") disabled #end />
<input type="text" class="#he($!question.questionId)" id="#he($!answer.answerId)
_ft
" name="$answerValue" size="$!answer.freeTextColWidth" value="$!escape.html($!answer.answerValue)" #if($!question.questionInitDisable == "1") disabled #end />
#end
##<!-- 2:SELECTMENU answer.answerNo値を値にする。-->
#elseif($!question.controlId == "2")
...
...
src/main/webapp/WEB-INF/view/common/enquete_sp.vm
View file @
278ec95f
...
...
@@ -87,7 +87,7 @@ $tools.getMsg("errorheader")
##<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
#if($!answer.freeTextFlg == 1 || $!answer.freeTextFlg == 2)
<div data-role="fieldcontain">
<input type="text" class="#he($!question.questionId) #he($!answer.answerId)
" id="$answerValue" name="$answerValue" size="$!answer.freeTextColWidth" value="$!escape.html($!answer.answerValue)"
/>
<input type="text" class="#he($!question.questionId) #he($!answer.answerId)
_ft" id="$answerValue" name="$answerValue" size="$!answer.freeTextColWidth" value="$!escape.html($!answer.answerValue)" #if($!question.questionInitDisable == "1") disabled #end
/>
<label for=$answerValue class="ui-hidden-accessible"></label>
</div>
#end
...
...
@@ -106,7 +106,7 @@ $tools.getMsg("errorheader")
##<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
#if($!answer.freeTextFlg == 1 || $!answer.freeTextFlg == 2)
<div data-role="fieldcontain">
<input type="text" class="#he($!question.questionId) #he($!answer.answerId)" id="$answerValue" name="$answerValue" size="$!answer.freeTextColWidth" value="$!escape.html($!answer.answerValue)" #if($!question.questionInitDisable == "1") disabled #end/>
<input type="text" class="#he($!question.questionId) #he($!answer.answerId)
_ft
" id="$answerValue" name="$answerValue" size="$!answer.freeTextColWidth" value="$!escape.html($!answer.answerValue)" #if($!question.questionInitDisable == "1") disabled #end/>
<label for=$answerValue class="ui-hidden-accessible"></label>
</div>
#end
...
...
src/main/webapp/WEB-INF/view/common/question_disable.vm
View file @
278ec95f
...
...
@@ -42,6 +42,10 @@ $(function() {
if ("${question.condRequiredAnswer}".split(",").indexOf(selectAnswerId) < 0) {
if ("${question.controlId}" == "0" || "${question.controlId}" == "1") {
radioOrCheckboxEvent("${answer.answerId}", true);
//自由入力欄
if ("${answer.freeTextFlg}" == "1" || "${answer.freeTextFlg}" == "2") {
etcEvent("${answer.answerId}_ft", true);
}
} else if ( "${question.controlId}" == "2"
|| "${question.controlId}" == "3"
|| "${question.controlId}" == "4"
...
...
@@ -57,6 +61,10 @@ $(function() {
} else {
if ("${question.controlId}" == "0" || "${question.controlId}" == "1") {
radioOrCheckboxEvent("${answer.answerId}", false);
//自由入力欄
if ("${answer.freeTextFlg}" == "1" || "${answer.freeTextFlg}" == "2") {
etcEvent("${answer.answerId}_ft", false);
}
} else if ("${question.controlId}" == "2"
|| "${question.controlId}" == "3"
|| "${question.controlId}" == "4"
...
...
@@ -84,6 +92,10 @@ $(function() {
&& ("${question.controlId}" == "0" || "${question.controlId}" == "1")) {
if ($(this).is(":checked")) {
radioOrCheckboxEvent("${answer.answerId}", true);
//自由入力欄
if ("${answer.freeTextFlg}" == "1" || "${answer.freeTextFlg}" == "2") {
etcEvent("${answer.answerId}_ft", true);
}
} else {
var array = "${question.condRequiredAnswer}".split(",");
var judgeDisable = true;
...
...
@@ -95,6 +107,10 @@ $(function() {
}
if (judgeDisable) {
radioOrCheckboxEvent("${answer.answerId}", true);
//自由入力欄
if ("${answer.freeTextFlg}" == "1" || "${answer.freeTextFlg}" == "2") {
etcEvent("${answer.answerId}_ft", true);
}
}
}
} else if ( "${question.controlId}" == "2"
...
...
@@ -136,6 +152,10 @@ $(function() {
if ("${question.controlId}" == "0" || "${question.controlId}" == "1") {
if ($(this).is(":checked")) {
radioOrCheckboxEvent("${answer.answerId}", false);
//自由入力欄
if ("${answer.freeTextFlg}" == "1" || "${answer.freeTextFlg}" == "2") {
etcEvent("${answer.answerId}_ft", false);
}
} else {
var array = "${question.condRequiredAnswer}".split(",");
var judgeDisable = true;
...
...
@@ -147,6 +167,10 @@ $(function() {
}
if (judgeDisable) {
radioOrCheckboxEvent("${answer.answerId}", true);
//自由入力欄
if ("${answer.freeTextFlg}" == "1" || "${answer.freeTextFlg}" == "2") {
etcEvent("${answer.answerId}_ft", true);
}
}
}
} else if ("${question.controlId}" == "2"
...
...
src/main/webapp/WEB-INF/view/common/question_disable_sp.vm
View file @
278ec95f
...
...
@@ -65,6 +65,10 @@ $(function() {
if ("${question.condRequiredAnswer}".split(",").indexOf(selectAnswerId) < 0) {
if ("${question.controlId}" == "0" || "${question.controlId}" == "1") {
radioOrCheckboxEvent("${answer.answerId}", true);
//自由入力欄
if ("${answer.freeTextFlg}" == "1" || "${answer.freeTextFlg}" == "2") {
textEvent("${answer.answerId}_ft", true);
}
} else if ( "${question.controlId}" == "2"
|| "${question.controlId}" == "3"
|| "${question.controlId}" == "4"
...
...
@@ -82,6 +86,10 @@ $(function() {
} else {
if ("${question.controlId}" == "0" || "${question.controlId}" == "1") {
radioOrCheckboxEvent("${answer.answerId}", false);
//自由入力欄
if ("${answer.freeTextFlg}" == "1" || "${answer.freeTextFlg}" == "2") {
textEvent("${answer.answerId}_ft", false);
}
} else if ("${question.controlId}" == "2"
|| "${question.controlId}" == "3"
|| "${question.controlId}" == "4"
...
...
@@ -111,6 +119,10 @@ $(function() {
&& ("${question.controlId}" == "0" || "${question.controlId}" == "1")) {
if ($(this).is(":checked")) {
radioOrCheckboxEvent("${answer.answerId}", true);
//自由入力欄
if ("${answer.freeTextFlg}" == "1" || "${answer.freeTextFlg}" == "2") {
textEvent("${answer.answerId}_ft", true);
}
} else {
var array = "${question.condRequiredAnswer}".split(",");
var judgeDisable = true;
...
...
@@ -122,6 +134,10 @@ $(function() {
}
if (judgeDisable) {
radioOrCheckboxEvent("${answer.answerId}", true);
//自由入力欄
if ("${answer.freeTextFlg}" == "1" || "${answer.freeTextFlg}" == "2") {
textEvent("${answer.answerId}_ft", true);
}
}
}
} else if ( "${question.controlId}" == "2"
...
...
@@ -167,6 +183,11 @@ $(function() {
if ("${question.controlId}" == "0" || "${question.controlId}" == "1") {
if ($(this).is(":checked")) {
radioOrCheckboxEvent("${answer.answerId}", false);
//自由入力欄
if ("${answer.freeTextFlg}" == "1" || "${answer.freeTextFlg}" == "2") {
textEvent("${answer.answerId}_ft", false);
}
} else {
var array = "${question.condRequiredAnswer}".split(",");
var judgeDisable = true;
...
...
@@ -178,6 +199,10 @@ $(function() {
}
if (judgeDisable) {
radioOrCheckboxEvent("${answer.answerId}", true);
//自由入力欄
if ("${answer.freeTextFlg}" == "1" || "${answer.freeTextFlg}" == "2") {
textEvent("${answer.answerId}_ft", true);
}
}
}
} else if ("${question.controlId}" == "2"
...
...
src/main/webapp/WEB-INF/view/user/enquete/enquete.html
View file @
278ec95f
...
...
@@ -218,7 +218,7 @@ $tools.getMsg("errorheader")
##
<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
<input
type=
"text"
class=
"#he($!question.questionId)"
id=
"#he($!answer.answerId)
"
name=
"$answerValue"
size=
"$!answer.freeTextColWidth"
value=
"$!escape.html($!answer.answerValue)"
/>
<input
type=
"text"
class=
"#he($!question.questionId)"
id=
"#he($!answer.answerId)
_ft"
name=
"$answerValue"
size=
"$!answer.freeTextColWidth"
value=
"$!escape.html($!answer.answerValue)"
#
if
($!
question
.
questionInitDisable =
=
"
1
")
disabled
#
end
/>
#end
##
<!-- 1:CHECKBOX answer.answerNo値を値にする。-->
#elseif($!question.controlId == "1")
...
...
@@ -229,7 +229,7 @@ $tools.getMsg("errorheader")
##
<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
<input
type=
"text"
class=
"#he($!question.questionId)"
id=
"#he($!answer.answerId)"
name=
"$answerValue"
size=
"$!answer.freeTextColWidth"
value=
"$!escape.html($!answer.answerValue)"
#
if
($!
question
.
questionInitDisable =
=
"
1
")
disabled
#
end
/>
<input
type=
"text"
class=
"#he($!question.questionId)"
id=
"#he($!answer.answerId)
_ft
"
name=
"$answerValue"
size=
"$!answer.freeTextColWidth"
value=
"$!escape.html($!answer.answerValue)"
#
if
($!
question
.
questionInitDisable =
=
"
1
")
disabled
#
end
/>
#end
##
<!-- 3:TEXTAREA ユーザー入力値を値にする。-->
#elseif($!question.controlId == "3")
...
...
src/main/webapp/WEB-INF/view/user/enquete/enquete_pub.html
View file @
278ec95f
...
...
@@ -150,7 +150,7 @@
##
<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
<input
type=
"text"
class=
"#he($!question.questionId)"
id=
"#he($!answer.answerId)
"
name=
"$answerValue"
size=
"$!answer.freeTextColWidth"
value=
"$!escape.html($!answer.answerValue)"
/>
<input
type=
"text"
class=
"#he($!question.questionId)"
id=
"#he($!answer.answerId)
_ft"
name=
"$answerValue"
size=
"$!answer.freeTextColWidth"
value=
"$!escape.html($!answer.answerValue)"
#
if
($!
question
.
questionInitDisable =
=
"
1
")
disabled
#
end
/>
#end
##
<!-- 1:CHECKBOX answer.answerNo値を値にする。-->
#elseif($!question.controlId == "1")
...
...
@@ -162,7 +162,7 @@
##
<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
<input
type=
"text"
class=
"#he($!question.questionId)"
id=
"#he($!answer.answerId)"
name=
"$answerValue"
size=
"$!answer.freeTextColWidth"
value=
"$!escape.html($!answer.answerValue)"
#
if
($!
question
.
questionInitDisable =
=
"
1
")
disabled
#
end
/>
<input
type=
"text"
class=
"#he($!question.questionId)"
id=
"#he($!answer.answerId)
_ft
"
name=
"$answerValue"
size=
"$!answer.freeTextColWidth"
value=
"$!escape.html($!answer.answerValue)"
#
if
($!
question
.
questionInitDisable =
=
"
1
")
disabled
#
end
/>
#end
##
<!-- 3:TEXTAREA ユーザー入力値を値にする。-->
#elseif($!question.controlId == "3")
...
...
src/main/webapp/WEB-INF/view/user/enquete/enquete_web_rec.html
View file @
278ec95f
...
...
@@ -157,7 +157,7 @@ $!enqueteForm.enquete.header
##
<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
<input
type=
"text"
class=
"#he($!question.questionId)"
id=
"#he($!answer.answerId)
"
name=
"$answerValue"
size=
"$!answer.freeTextColWidth"
value=
"$!escape.html($!answer.answerValue)"
/>
<input
type=
"text"
class=
"#he($!question.questionId)"
id=
"#he($!answer.answerId)
_ft"
name=
"$answerValue"
size=
"$!answer.freeTextColWidth"
value=
"$!escape.html($!answer.answerValue)"
#
if
($!
question
.
questionInitDisable =
=
"
1
")
disabled
#
end
/>
#end
##
<!-- 1:CHECKBOX answer.answerNo値を値にする。-->
#elseif($!question.controlId == "1")
...
...
@@ -169,7 +169,7 @@ $!enqueteForm.enquete.header
##
<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
<input
type=
"text"
name=
"$answerValue"
size=
"$!answer.freeTextColWidth"
value=
"$!escape.html($!answer.answerValue)"
#
if
($!
question
.
questionInitDisable =
=
"
1
")
disabled
#
end
/>
<input
type=
"text"
class=
"#he($!question.questionId)"
id=
"#he($!answer.answerId)_ft"
name=
"$answerValue"
size=
"$!answer.freeTextColWidth"
value=
"$!escape.html($!answer.answerValue)"
#
if
($!
question
.
questionInitDisable =
=
"
1
")
disabled
#
end
/>
#end
##
<!-- 3:TEXTAREA ユーザー入力値を値にする。-->
#elseif($!question.controlId == "3")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment