Contact Form 7 Required field not working - contact-form-7

I am using contact form 7 for a number of forms on my site.
I am using almost identical code for two forms.
The problem is, on one form, i am missing 'required field' messages, loading animation on send and the success message.
However, my other forms are working perfectly.
The not working properly form can be found here (just click on any button):
http://trailerbins2u.com.au/
The Code for this form is:
<div class="thrive-col left-col">
[text* your-name placeholder "Name*"][text your-company placeholder "Company"]</div>
<div class="thrive-col right-col">
[email* your-email placeholder "Email*"]
[tel* your-phone placeholder "Phone Number*"]</div>
[text* your-address placeholder "Drop Off Address*"]</div>
[date* your-drop placeholder "Trailer Drop Off Date*"]</div>
[text* your-time placeholder "Preferred Time*"]
[select* your-trailer "Select Trailer Size*" "4 Cubic Metre Lite" "4 Cubic Metre" "5 Cubic Metre" "6 Cubic Metre"]
<div class="thrive-col left-col"><label>Do You Have Household Rubbish?</label>
[checkbox* your-household-rubbish "Household Junk" "Furniture & Furnishings" "Appliances & Whitegoods" "Paper & Stationary" "Office Waste & E-waste" "Rugs & Flooring" "Packaging Waste" "Green Waste" "Mattress" "None of the Above"]</div>
<div class="thrive-col right-col"><label>Do you have Construction Waste?</label>
[checkbox* nl default:10 your-construction-rubbish "Plasterboard (Gyprock)" "Timber & Framing" "Joinery & Cabinets" "Timber Flooring" "Carpet & Underlay" "Packaging Waste" "Builders Rubble" "Kitchen Demolition" "Bathroom Demolition" "None of the Above"]</div>
[textarea your-message placeholder "Your Message"]
[submit "Send"]
My other, perfectly working form can be found here (again, click on any button):
http://trailerbins2u.com.au/rubbish-removal-sydney/
And the code:
<div class="thrive-col left-col">
[text* your-name placeholder "Name*"] [text your-company placeholder "Company"]</div>
<div class="thrive-col right-col">[email* your-email placeholder "Email*"]
[tel* your-phone placeholder "Phone Number*"]</div>
[date* your-drop placeholder "Date Removal Required"]
[text* your-time placeholder "Time*"]
[text* your-address placeholder "Address*"]
<div class="thrive-col left-col"><label>Do You Have Household Rubbish?</label>
[checkbox* your-household-rubbish "Household Junk" "Furniture & Furnishings" "Appliances & Whitegoods" "Rugs & Flooring" "Packaging Waste" "Green Waste" "Mattress" "None of the Above"]</div>
<div class="thrive-col right-col"><label>Do you have Construction Rubbish?</label>
[checkbox* your-construction-rubbish "Plasterboard (Gyprock)" "Timber & Framing" "Joinery & Cabinets" "Timber Flooring" "Carpet & Underlay" "Packaging Waste" "Builders Rubble" "Kitchen Demolition" "Bathroom Demolition" "None of the Above"]</div>
[textarea your-message placeholder "Your Message"]
[submit "Send"]
So as you can see, the code is almost identical. Contact forms 7 is obviously working properly for the second form to send, and no css should be affecting it, as it should affect both.
Any ideas on what's gone wrong?
Thanks Everyone!

It may be due to an extra form tag placed before the short code.

Related

ADF Popup disappear on Filtering data

I have been implementing a popup on button click, however when I want to filter the data, Like in highlighted snap & press ENTER the popup disappear. The issues is on every popup. I am using 12.2.1.4.0 version of Jdeveloper. Please help to get out of this stuck
Here is the code of my Popup:
<af:popup id="prodRol"
popupFetchListener="#{ProdPgBean.editPopupFetchFabIns}"
contentDelivery="lazyUncached">
<af:dialog id="d4" dialogListener="#{ProdPgBean.editDialogFabInsp}"
title="Fill Fabric Inspection Rolls">
<af:panelCollection id="pc15" inlineStyle="width:500px; height:470px;">
<f:facet name="menus"/>
<f:facet name="toolbar">
<af:toolbar id="t33">
<af:button text="Select All" id="cb38" partialSubmit="true"
actionListener="#{ProdPgBean.SelectAllFabricRollInsp}"/>
<af:button text="De Select All" id="cb37" partialSubmit="true"
actionListener="#{ProdPgBean.DeSelectAllFabricRollInsp}"/>
</af:toolbar>
</f:facet>
<f:facet name="statusbar"/>
<af:table value="#{bindings.ProdFbShrnkRollVO1.collectionModel}"
var="row"
rows="#{bindings.ProdFbShrnkRollVO1.rangeSize}"
emptyText="#{bindings.ProdFbShrnkRollVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.ProdFbShrnkRollVO1.rangeSize}"
rowBandingInterval="0"
filterModel="#{bindings.ProdFbShrnkRollVO1Query.queryDescriptor}"
queryListener="#{bindings.ProdFbShrnkRollVO1Query.processQuery}"
filterVisible="true" varStatus="vs"
selectedRowKeys="#{bindings.ProdFbShrnkRollVO1.collectionModel.selectedRow}"
selectionListener="#{bindings.ProdFbShrnkRollVO1.collectionModel.makeCurrent}"
rowSelection="single" id="t21"
binding="#{ProdPgBean.fabricInspRollTable}" autoHeightRows="-1" inlineStyle="height:400px;"
styleClass="AFStretchWidth">
<af:column headerText="Select "
id="c66" align="center" width="40">
<af:selectBooleanCheckbox value="#{row.bindings.SelpRol.inputValue}"
label="#{row.bindings.SelpRol.label}"
shortDesc="#{bindings.ProdFbShrnkRollVO1.hints.SelpRol.tooltip}"
id="sbc3"/>
</af:column>
<af:column sortProperty="RollNo" filterable="true"
sortable="true" headerText="Roll No." id="c64"
align="center">
<af:inputText value="#{row.bindings.RollNo.inputValue}"
label="#{bindings.ProdFbShrnkRollVO1.hints.RollNo.label}"
required="#{bindings.ProdFbShrnkRollVO1.hints.RollNo.mandatory}"
columns="#{bindings.ProdFbShrnkRollVO1.hints.RollNo.displayWidth}"
maximumLength="#{bindings.ProdFbShrnkRollVO1.hints.RollNo.precision}"
shortDesc="#{bindings.ProdFbShrnkRollVO1.hints.RollNo.tooltip}"
id="it40">
<f:validator binding="#{row.bindings.RollNo.validator}"/>
</af:inputText>
</af:column>
<af:column headerText="Supplier Roll No"
id="c137" align="center" sortProperty="SuppRollNo"
sortable="true" filterable="true">
<af:outputText value="#{row.SuppRollNo}" id="ot14"/>
</af:table>
</af:panelCollection>
</af:dialog>
</af:popup>
set the autoCancel property of the af:popup to disabled. This should prevent the popoup closes automatically.
From your description, it's not clear when the popup should close.

vue-the-mask + element ui input slot 2 value error

anyone have the solution for below case ?
<el-input v-model="contactNo" v-mask="'## ### #####'" masked="true" /> // this is valid
I got the error, because v-mask directive requires 1 input, found 2
<el-input placeholder="enter phone number" v-model="contactNo" class="input-with-select">
<el-select v-model="select" slot="prepend" placeholder="select">
<el-option label="restaurant phone" value="1"></el-option>
<el-option label="order phone" value="2"></el-option>
<el-option label="personal phone" value="3"></el-option>
</el-select>
You need to remove apostrophes from v-mask value or bind prop with ::
Option 1:
v-mask="## ### #####"
Option 2:
:v-mask="'## ### #####'"

Pulling Data from Google spreadsheet

I am having difficulty pulling data from Google spreadsheet
I have added following gem files
gem 'roo'
gem 'google_drive'
gem 'google-spreadsheet-ruby'
My jobs file is
require 'roo'
require 'rubygems'
def fetch_spreadsheet_data()
google_user = "MY EMAIL ADDRESS"
google_password = "MY PASSWORD"
workbook = Roo::Google.new("https://docs.google.com/spreadsheet/ccc?key=1hdwnrDsuJId1FLE0yWICYP1HGqYNu2NHH2IcoPyAzOQ#gid=0",user: google_user, password: google_password)
send_event('catchup_data', {current: s.cell('B',2) })
send_event('Bounced_back', {current: s.cell('B',3) )
end
SCHEDULER.every '5m' do
fetch_spreadsheet_data()
end
My dashboard.erb file has following html
<li data-row="2" data-col="3" data-sizex="1" data-sizey="1">
<div data-id="bounce_back" data-view="Number" data-title="Triage - Work in Progress" style="background-color:#5AC352;"></div>
</li>
<li data-row="2" data-col="4" data-sizex="1" data-sizey="1">
<div data-id="catchup_data" data-view="Number" data-title="Squad catchup sessions last month" style="background-color:#DBA901;"></div>
</li>
Not sure what am I missing that the data is not coming through. Can anyone please help me?
There are a few things wrong that I can see:
You're sending 'Bounced_back' but binding to the id of 'bounce_back'
You are trying to get the cell data from 's' but 's' is undefined
Looking at the Roo docs, I believe you have copied 's' from there. Just above that, they use sheet instead so I believe you have to grab the sheet from the workbook before using it.
I googled a bit and found this: http://etzelstorfer.com/en/dashing-graph-from-google-spreadsheet/
In summary, this should work for you:
def fetch_spreadsheet_data()
google_user = "MY EMAIL ADDRESS"
google_password = "MY PASSWORD"
workbook = Roo::Google.new("https://docs.google.com/spreadsheet/ccc?key=1hdwnrDsuJId1FLE0yWICYP1HGqYNu2NHH2IcoPyAzOQ#gid=0",user: google_user, password: google_password)
s = workbook.sheets[0] # assuming first sheet in workbook
send_event('catchup_data', {current: s.cell('B',2) })
send_event('bounce_back', {current: s.cell('B',3) )
end
SCHEDULER.every '5m' do
fetch_spreadsheet_data()
end

Capybara choose method Unable to find radio button

I have a form which is generated by simple form:
TL TR
<div class="form-group radio_buttons required user_register_temp_package">
<label class="radio_buttons required control-label">
<abbr title="zorunlu">
*
</abbr>
Paket
</label>
<label class="radio">
<input class="radio_buttons required" id="user_register_temp_attributes_domain_package_id_1" name="user[register_temp_attributes][domain_package_id]" type="radio" value="1">
Small
</label>
<label class="radio">
<input checked="checked" class="radio_buttons required" id="user_register_temp_attributes_domain_package_id_2" name="user[register_temp_attributes][domain_package_id]" type="radio" value="2">
Medium
</label>
<label class="radio">
<input class="radio_buttons required" id="user_register_temp_attributes_domain_package_id_3" name="user[register_temp_attributes][domain_package_id]" type="radio" value="3">
Large
</label>
</div>
TL TR
I have a simple spec like this:
# encoding: UTF-8
require 'spec_helper'
feature 'Register' do
background do
visit new_user_registration_path
end
scenario 'fill register form and register' do
# TL TR
choose('user_register_temp_attributes_domain_package_id_1')
# TL TR
end
end
My spec_helper.rb is
ENV['RAILS_ENV'] ||= 'test'
require File
.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'capybara/rspec'
Capybara.javascript_driver = :webkit
Capybara.default_selector = :css
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
RSpec.configure do |config|
# ## Mock Framework
#
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
#
# config.mock_with :mocha
# config.mock_with :flexmock
# config.mock_with :rr
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"
# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false
# instead of true.
config.use_transactional_fixtures = true
# If true, the base class of anonymous controllers will be inferred
# automatically. This will be the default behavior in future versions of
# rspec-rails.
config.infer_base_class_for_anonymous_controllers = false
# Run specs in random order to surface order dependencies. If you find an
# order dependency and want to debug it, you can fix the order by providing
# the seed, which is printed after each run.
# --seed 1234
config.order = 'random'
# Capybara DSL
config.include Capybara::DSL
# Factory girl
config.include FactoryGirl::Syntax::Methods
end
The Capybara API for the choose method says:
"Find a radio button and mark it as checked. The radio button can be found via name, id or label text."
But when I run spec with choose('user_register_temp_attributes_domain_package_id_1'), I get
Capybara::ElementNotFound: Unable to find radio button "user_register_temp_attributes_domain_package_id_1"
I've tried code below but got Capybara::ElementNotFound: Unable to find css "user_register_temp_attributes_domain_package_id_1" error:
find('#user_register_temp_attributes_domain_package_id_1[value=1]').set(true)
It seems there is no problem with fill_in, check or click_button methods.
Regards.
Most likely underlying driver thinks that this radio button is invisible. By default Capybara finds only visible elements (as Capybara.ignore_hidden_elements is true by default) so it didn't find that element.
Try:
choose('user_register_temp_attributes_domain_package_id_1', visible: false)
You can improve error message by submitting a pull request to Capybara.

How do I access structured metadata using DocPad?

I'm evaluating DocPad at the moment to see if it will be suitable for our website amongst other things. I'm having trouble working out how to use structured metadata in eco templates. I'm pretty sure it's related to How to display Backbone nested attribute using Eco? but that's unanswered too.
My page looks like:
--- yaml
layout: 'post'
title: "Samuel Johnson's garret - an unexpected lull"
category: 'Digital Publishing'
author:
name: Author Name
page: author
email: author.name#ourdomain.co.uk
---
Unexpected free time, a chilly walk, a brown plaque leads me to
[Dr Johnson's house (http://www.drjohnsonshouse.org/) near Fleet-Street…
and the eco template like:
---
layout: default
---
<article id="post" class="post">
<h1><%= #document.title %></h1>
<h2>By: <%= #document.author.email %></h2>
<div class="post-content"><%- #content %></div>
</article>
The #document.author.email leads to the following error being logged:
TypeError: Cannot read property 'email' of undefined
How do I access that structured metadata?
thanks
Everything seems ok. When I test the same structure, the line <%= #document.author.email %> works. Maybe you have some kind of inconsistency using white spaces and tabs ? You can validate your YAML on this site : http://yamllint.com.
Personally I also use arrays of objects in metadata :
choices:
-
text: "Mercure"
feedback: "Mercure est la planète la plus proche du Soleil, elle se situe à une distance de 0,4 UA"
value: 0
-
text: "Neptune"
feedback: "C'est effectivement la planète la plus éloignée avec une distance de 30 UA."
value: 1
and it works great. Sorry for the text in French but I guess it doesn't really matter for an example.
you can see this example, it works perfectly now, i found my issue and i want to share the solution with you:
---
slides:
-
detailimage: "heliski-img.png"
mainimage: "heliski-g.jpg"
title: "Powder South Heliski Guides"
-
detailimage: "nuevos-vientos-img.png"
mainimage: "nuevos-vientos.jpg"
title: "Centro Experiencial Nuevos Vientos"
---
#full-width-slider.royalSlider.heroSlider.rsMinW
each slide in document.slides
.rsContent
img.rsImg(src='/slideshow/#{slide.mainimage}', alt='#{slide.title}')
.infoBlock.infoBlockLeftBlack.rsABlock(data-fade-effect='', data-move-offset='10', data-move-effect='bottom', data-speed='200')
p #{slide.title}
img.rsImg(src='/slideshow/#{slide.detailimage}', alt='#{slide.title}')
the important thing is the each line, it must say "in document.slides" so i can access from jade the document metadata. :D
the final render will look like this:
<div id="full-width-slider" class="royalSlider heroSlider rsMinW">
<div class="rsContent"><img src="/slideshow/heliski-g.jpg" alt="Powder South Heliski Guides" class="rsImg">
<div data-fade-effect="" data-move-offset="10" data-move-effect="bottom" data-speed="200" class="infoBlock infoBlockLeftBlack rsABlock"></div>
<p>Powder South Heliski Guides</p><img src="/slideshow/heliski-img.png" alt="Powder South Heliski Guides" class="rsImg">
</div>
<div class="rsContent"><img src="/slideshow/nuevos-vientos.jpg" alt="Centro Experiencial Nuevos Vientos" class="rsImg">
<div data-fade-effect="" data-move-offset="10" data-move-effect="bottom" data-speed="200" class="infoBlock infoBlockLeftBlack rsABlock"></div>
<p>Centro Experiencial Nuevos Vientos</p><img src="/slideshow/nuevos-vientos-img.png" alt="Centro Experiencial Nuevos Vientos" class="rsImg">
</div>
</div>