Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 0.7.8.1, css, form, required field
- This topic has 4 replies, 2 voices, and was last updated 12 years, 11 months ago by
Steven Zahm.
-
AuthorPosts
-
09/06/2013 at 4:35 pm #268682
Janet Dalton
ParticipantI am working with the Connections Form for the first time. Things are going well and get several people to test the form.
One issue that came up was when someone pressed ENTER early in the process and the form began the submission process. No option to go back and finish.
http://www.fenelonfalls.info/WP/businesses-and-organizations/input-business-form/
Can I add in a CUSTOM FIELD that is required to the end of the form ?
If so, please provide some coding advice on how to do this.
I anticipate that such a REQUIRED FIELD would also help to stop spammers and BOTS from submitting useless data.
Any help appreciated.
JD
09/07/2013 at 4:31 pm #268722Janet Dalton
Participantbeen searching and searching … and hoping for an answer.
Found old posts that say you can’t do CUSTOM / NEW FIELDS.
So please tell me how I can make the BIO ( description ) field a REQUIRED FIELD and that should solve most of my problems. I will just add a note into the form that some content must be in the BIO (description) in order for the form to submit.
Hoping on going live with this soon. Appreciate any help offered.
JD
09/09/2013 at 11:40 pm #268828Steven Zahm
Keymaster@ Janet
The only way to make the bio a required field is to make a small edit to the
connections_form.phpfile.Search for this line:
$out .= '<textarea rows="20" cols="40" name="bio" id="cn-form-bio"></textarea>';Change it to this:
$out .= '<textarea class="required" rows="20" cols="40" name="bio" id="cn-form-bio"></textarea>';You will than have to disable the rich text editor by setting the
rteshortcode option toFALSE; like so:
[connections_form rte=FALSE]That’s the easiest. If you really want the rich text editor; the change is not harder but does appear like it is because of where the change has to be made. Here’s how:
Search for this block of code:
wp_editor( $entry->getBio(), 'cn-form-bio', array ( 'media_buttons' => FALSE, 'wpautop' => TRUE, 'textarea_name' => 'bio', 'tinymce' => array ( 'theme_advanced_buttons1' => 'bold, italic, underline, |, bullist, numlist, |, justifyleft, justifycenter, justifyright, |, link, unlink, |, pastetext, pasteword, removeformat, |, undo, redo', 'theme_advanced_buttons2' => '', 'inline_styles' => TRUE, 'relative_urls' => FALSE, 'remove_linebreaks' => FALSE, 'plugins' => 'inlinepopups,spellchecker,tabfocus,paste' ), 'quicktags' => array ( 'buttons' => 'strong,em,ul,ol,li,close', ) ) );And change it to this:
wp_editor( $entry->getBio(), 'cn-form-bio', array ( 'media_buttons' => FALSE, 'wpautop' => TRUE, 'textarea_name' => 'bio', 'editor_class' => 'required', 'tinymce' => array ( 'theme_advanced_buttons1' => 'bold, italic, underline, |, bullist, numlist, |, justifyleft, justifycenter, justifyright, |, link, unlink, |, pastetext, pasteword, removeformat, |, undo, redo', 'theme_advanced_buttons2' => '', 'inline_styles' => TRUE, 'relative_urls' => FALSE, 'remove_linebreaks' => FALSE, 'plugins' => 'inlinepopups,spellchecker,tabfocus,paste' ), 'quicktags' => array ( 'buttons' => 'strong,em,ul,ol,li,close', ) ) );That should do it. I hope that helps!
09/10/2013 at 8:32 am #268864Janet Dalton
ParticipantTHANK YOU ! That would beautifully. I went with the second option and then added in some screen text.
Happy Novice !!
09/10/2013 at 8:46 am #268867Steven Zahm
Keymaster@ Janet
Great to hear that this worked for you. Again my apologies for the delay in my reply!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
