Skip to content

Commit

Permalink
fix: mark survey conditional questional required or not
Browse files Browse the repository at this point in the history
  • Loading branch information
JiyaGupta-cs committed Feb 24, 2025
1 parent 60ffa77 commit 59c27c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/surveys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def to_question_params
:placeholder_text => placeholder_text,
:track_sentiment => track_sentiment,
:validation_rules => {
:presence => !conditionals.nil? && !conditionals.empty? ? "0" : answer_presence,
:presence => answer_presence,
:grouped => answer_grouped,
:grouped_question => answer_grouped_question,
:minimum => answer_minimum_length,
Expand Down

0 comments on commit 59c27c6

Please sign in to comment.