Skip to content

Commit

Permalink
Merge pull request #6208 from JiyaGupta-cs/fix-survey-conditional-que…
Browse files Browse the repository at this point in the history
…stion-required

fix: mark survey conditional questional required or not
  • Loading branch information
ragesoss authored Feb 24, 2025
2 parents 60ffa77 + 59c27c6 commit d0d5411
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 d0d5411

Please sign in to comment.