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.
- This topic has 4 replies, 2 voices, and was last updated 12 years, 10 months ago by
Mitch.
-
AuthorPosts
-
10/22/2013 at 5:53 pm #272097
Mitch
ParticipantHey Steve,
I may be missing something… I saw in a previous forum post where I could go in to .php and make certain fields required. Started rummaging around in there, and it looked like First Name, Last Name WERE already required (as was Organization).
However, in testing (logged out, in a different browser) I have submitted multiple Forms with neither name or email on them.
Here is the shortcode on the page:
[connections_form logo='true' default_type='organization' select_type='false' category='false' messenger='false']How can I make sure that selected fields ARE required, especially Name, email, and phone number?
Maybe in a future release there can be a simple tickbox next to these fields in settings, or something in the shortcode, that elects Required structure? Just some thoughts.
Thanks!
10/23/2013 at 11:37 am #272152Steven Zahm
Keymaster@ Mitch
Yes, the first/last name are required if submitting an individual and org name is submitting an org. If that is failing, likely another plugin is loading after Form with overly broad selectors removing the
requiredclass. What’s the link to you Form test page so I can take a look?Requiring an email isn’t possible unless the email sections is rewritten to be a static form field rather than the the dynamic repeatable field.
When I redo the form part of the code to support the forthcoming custom metabox and fields API adding “required” support is at the top of the list.
10/23/2013 at 11:52 am #272161Mitch
ParticipantAh. OK, I was looking to make Name fields required even on an Organization. I want to capture the info, even if I choose not to display it on the page.
I have Organization as the default structure, and, YES, in that setup it does preclude a submission if the Organization field is empty. So it does work based on the way you created it. I just wanted to make Org, Name, email and maybe phone required fields on ALL submissions (or at least have the ability to select field to be required – doing so via shortcode would be great, as you could elect different required fields in different form usages).
Thanks as always for your timely reply.
10/23/2013 at 12:18 pm #272165Steven Zahm
Keymaster@ Mitch
You could alter the
cn-form-user.jsso it doesn’t add/remove the required class when making the entry type selection on the first/last, org names. It would not get you the email/phone.If you wanted to be really, really clever … you could go to you page add a phone and email field, copy the page source from the Chrome Source Inspector pasting it over the code in the
connections-form.phpfile. You’d have to make sure to stop and stop the PHP interpreter using the start/stop tags before and after the pasted HTML code. You would then have to remove the add/remove buttons in the pasted HTML and finally add the required class.Sounds like a lot, but with a little trial and error, probably an hours worth of time.
10/23/2013 at 1:40 pm #272169Mitch
ParticipantHa. You lost me at ‘clever’ :)
I’ll look at the cn js, but not going to deep dive into the other. I have a premium wordpress forms plugin that can do what I want already, but I bought yours too because I liked the interface with the database. However, the inability to require selected fields would preclude me from using it in this application. I’ll just hope that some of these features get built into upcoming iterations of your plugin.
Thanks again for your solid products and terrific support.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
