Home › Toolset Professional Support › [Resolved] After add a few conditional statements with "OR" cannot submit form
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
Tagged: Content-submission forms, Toolset Forms
Related documentation:
This topic contains 6 replies, has 2 voices.
Last updated by MaureenR3428 6 years, 1 month ago.
Assisted by: Waqar.
I am trying to: submit a form with
Link to a page where the issue can be seen: unfortunately it is hidden by access
I expected to see: the form submitted and appear in
Instead, I got: The post was not saved because of the following problem:
There was no information about the problem.
This is the content for the form:
[credform]
[cred_field field="form_messages" class="alert alert-warning"]
<div class="form-group">
<div style="display: none;">
<label>Applications Title</label>
[cred_field field="post_title" class="form-control" output="bootstrap"]
</div></div>
<div class="form-group">
<label>Name of Organization</label>
[cred_field field="name-of-organization" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Point of Contact (POC) Name</label>
[cred_field field="point-of-contact-poc-name" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Point of Contact Email Address</label>
[cred_field field="point-of-contact-email-address" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Grant Type: Select your Grant Application - Best use of Volunteers, $5000 or less, over $5000</label>
[cred_field field="grant-type" force_type="field" class="form-control" output="bootstrap"]
</div>
[cred_show_group if="( $(grant-type) eq '1' )" mode="none"]<div class="form-group">
<label>Best Use of Volunteers Grant</label>
[cred_field field="best-use-of-volunteers-grant" force_type="field" class="form-control" output="bootstrap"]
</div>[/cred_show_group]
[cred_show_group if="( $(grant-type) eq '2' ) OR ( $(grant-type) eq '3' )" mode="none"]<div class="form-group">
<label>Project Title</label>
[cred_field field="project-title" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Brief summary of grant proposal. Detailed proposal to follow.</label>
[cred_field field="brief-summary-of-grant-proposal-detailed-proposal-to-follow" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Percent of total EXPENSES of your services provided within Barrington Area</label>
[cred_field field="percent-expenses-your-services-provides-within-barrington-area" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Percent of all PROGRAMS that your services provide within Barrington Area</label>
[cred_field field="percent-of-programs-your-services-provide-within-barrington-area" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Number of RESIDENTS your services provides for within Barrington Area</label>
[cred_field field="number-of-residents-your-services-provide-within-barrington-area" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Comments</label>
[cred_field field="comments" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Upload supporting documents for % of expense, % of programs, # residents.</label>
[cred_field field="upload-supporting-documents" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>What is your total budget for this project</label>
[cred_field field="what-is-your-total-budget-for-this-project" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Upload Project Budget Breakdown</label>
[cred_field field="upload-project-budget-breakdown" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>How much funding are you requesting for this project</label>
[cred_field field="how-much-funding-are-you-requesting-for-this-project" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Explain how the funding will be utilized</label>
[cred_field field="explain-how-the-funding-will-be-utilized" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Total amount your organization has committed to project</label>
[cred_field field="total-amount-your-organization-has-committed-to-projec" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>If grant is not received, what will happen to project?</label>
[cred_field field="if-grant-is-not-received-what-will-happen-to-project" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Will this project</label>
[cred_field field="will-this-project" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>What have been your major funding resources for the past 3 years</label>
[cred_field field="what-have-been-your-major-funding-resources-for-the-past-3-years" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>How will your project benefit the Barrington Area in meeting an unmet need? Who will benefit from the program? What are your desired outcomes?</label>
[cred_field field="how-will-your-project-benefit-the-barrington-area-in-an-unmet-need" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>How will you evaluate the success of your project?</label>
[cred_field field="how-will-you-evaluate-the-success-of-your-project" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Who will be the contact submitting the results of your project to BACF at the end of the year?</label>
[cred_field field="who-will-be-the-contact-submitting-the-results-of-your-project-to-bacf-at-the-end-of-the-year" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Have you ever applied to BACF for other grants?</label>
[cred_field field="have-you-ever-applied-to-bacf-for-other-grants" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>What year(s) have you applied to BACF for other grants</label>
[cred_field field="what-years-have-you-applied-to-bacf-for-other-grants" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>If YES, please give short summary of past project status.</label>
[cred_field field="if-yes-please-give-short-summary-of-project-status" force_type="field" class="form-control" output="bootstrap"]
</div>
[/cred_show_group]
[cred_show_group if="( $(grant-type) eq '3' )" mode="none"]<div class="form-group">
<label>Minimum grant amount you must have before the organization will commit to raising the additional funds to begin the project?</label>
[cred_field field="minimum-grant-amount-you-must-have-before-the-organization-will-commit-to-raising-the-additional-funds-to-begin-the-project" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>What other funding sources are available to your organiztion for this project?</label>
[cred_field field="what-other-funding-sources-are-available-to-your-organiztion-for-this-project" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>When will this project be finished?</label>
[cred_field field="when-will-this-project-be-finished" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>How many years have you been servicing the Barrington Area?</label>
[cred_field field="how-many-years-have-you-been-servicing-the-barrington-area" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>How does this project relate to the organization's mision statement? How does this project support your organiztion's other works/projects?</label>
[cred_field field="how-does-this-project-relate-to-the-organizations-mision-statement-how-does-this-project-support-your-organiztions-other-works-projects" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>How will your project benefit the Barrington Area in meeting an unmet need? Who will benefit from the program? What are your desired outcomes?</label>
[cred_field field="how-will-your-project-benefit-the-barrington-area-in-meeting-an-unmet-need-who-will-benefit-from-the-program-what-are-your-desired-outcomes" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Do other organizations address the same need/issue; and if so, how will your project relate or interact with these organizations' projects?</label>
[cred_field field="do-other-organizations-address-the-same-need-issue-and-if-so-how-will-your-project-relate-or-interact-with-these-organizations-projects" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Will your project be beneficial outside the Barrington Area, to what extent. Explain:</label>
[cred_field field="will-your-project-be-beneficial-outside-the-brrington-area-to-what-extent-explain" force_type="field" class="form-control" output="bootstrap"]
</div>[/cred_show_group]
[cred_show_group if="( $(grant-type) eq '2' ) OR ( $(grant-type) eq '3' )" mode="none"]<div class="form-group">
<label>Please upload - Mission Statement</label>
[cred_field field="please-upload-mission-statement" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Please upload - Timetable for the Project</label>
[cred_field field="please-upload-timetble-for-the-project" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Please upload - Project Budget document</label>
[cred_field field="additional-documents-to-be-uploaded" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Please upload - Agency Budget</label>
[cred_field field="please-upload-agency-budget" force_type="field" class="form-control" output="bootstrap"]
</div>
<div class="form-group">
<label>Please upload - Financial Statements</label>
[cred_field field="please-upload-financial-statements" force_type="field" class="form-control" output="bootstrap"]
</div>
[/cred_show_group]
[cred_field field='form_submit' output='bootstrap' value='Submit' class='btn btn-primary btn-lg']
[/credform]
Hi Maureen,
Thank you for contacting us and I’d be happy to assist.
To troubleshoot why the form is not submitting properly, my first recommendation would be to check if there are any script errors or warnings shown in the browser’s console.
( ref: https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors )
You can also test the form submission, with all other plugins disabled, except the Toolset. If the form is submitted correctly without other plugins, you can start activating them, one-by-one, to narrow down to a possible conflicting one.
In case the issue still persists, we’ll need temporary access (WP-Admin and FTP) to your site ( preferably, to a test site where the problem has been replicated ).
This access will allow us to offer better help and check if some configurations or form code might need to be changed.
Your next answer will be private which means only you and our support team will have access to it.
If you’re going to share the access details for the live/production website, it is very important that a complete backup of your database and website has been made.
We would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is really important.
Please let us know if you have any further information or questions.
Regards,
Waqar
Hi Maureen,
Thank you for sharing the login details.
Unfortunately, the email "testing@signaturegd.com" is not being accepted as a valid email address/username.
Can you please test the login details again and share the updated information?
(you next reply will be private too)
Thank you.
Hi Maureen,
Thanks for writing back and for sharing the login details.
During troubleshooting, I noticed that the first field in the form ( "Applications Title" ) was hidden using inline CSS code:
<div style="display: none;"> <label>Applications Title</label> [cred_field field="post_title" class="form-control" output="bootstrap"] </div>
Since this field is required, and it is not hidden using our conditional group shortcode ( [cred_show_group] ), it is still processed for validation. Its inline validation message for a required field is also not visible because of that inline CSS code.
To avoid that, you can either remove that CSS code and make that field visible or wrap it inside conditional shortcode that will remain false, making sure that the title field is not visible and not validated:
[cred_show_group if="( $(post_title) ne '' )" mode="none"] <div class="form-group"> <label>Applications Title</label> [cred_field field="post_title" class="form-control" output="bootstrap"] </div> [/cred_show_group]
I hope this helps! Please let us know if you need any further assistance.
regards,
Waqar
Thank you Waqar. I will try the new code you gave me and let you know today if it solves the problem.
You're very welcome, Maureen.
Please let me know how it goes and if I can be of any further assistance.
Have a great day!
My issue is resolved now. Thank you!