Required Fields on Forms

Permalink
How can we make required fields on the forms we create in Concrete?

 
Tony replied on at Permalink Reply
Tony
This will be included with the 5.3 release of concrete5.
frz replied on at Permalink Reply
frz
yes soon, no it wont be called 5.3 - it should be out in a sub-release sooner.
ajumbra123 replied on at Permalink Reply
Thanks! Looking forward to it!
ajumbra123 replied on at Permalink Reply
I have two more quick questions on the concrete forms... All information is submitted correctly to email with the exception of checkbox fields. Checkboxed items are not being displayed in the email - has anyone else encountered this?

Secondly, when viewing a form's submissions in the admin, I have never been able to get the "show all" and "sort chronologically" functions to work properly - they both take me to "page not found"...

Any solutions to either of these items would be greatly appreciated!
Thanks!!
-AJ
Tony replied on at Permalink Reply
Tony
In regards to the sorting, this has also been fixed in the next release, but if you want to get it working in the meantime, do this:

Open up the file /concrete/single_pages/dashboard/reports/form

And replace all the links to "/dashboard/form_results/" with "/dashboard/reports/forms/"

(the page location was moved and the links weren't updated)

I'll look into the checkbox in emails thing.
ajumbra123 replied on at Permalink Reply
Awesome! That worked! I'll wait to hear back on the checkbox item...
Thanks!
-AJ
Tony replied on at Permalink Reply
Tony
In concrete/blocks/form/controller.php, within the action_submit_form() method, replace the first chunk of code with the second:
$questionAnswerPairs[$row['msqID']]['question']=$row['question'];
$questionAnswerPairs[$row['msqID']]['answer']=$txt->sanitize($_POST['Question'.$row['msqID']]);
if(is_array($answer)
   $answer=join(',',$answer);

if( is_array($answer) )
$answer=join(',',$answer);
$questionAnswerPairs[$row['msqID']]['question']=$row['question'];
$questionAnswerPairs[$row['msqID']]['answer']=$txt->sanitize( $answer.$answerLong );

(fix those forced line breaks on ['answer'] && ['question'] obviously too)
ajumbra123 replied on at Permalink Reply
Awesome! That worked!
Thanks!
-AJ