Your browser has turned off or is blocking Javascript.
If you are using a content blocker, check to see that you have not globally turned off Javascript.
If you have turned it off manually in your browser, please enable it to better experience this site.
Testing open BookIt after selecting a checkbox on the form
09/12/23: First Try – I found a way to fire a script if the person selects the checkbox and clicks on submit.
Next steps are:
Checking if the form is working correctly and getting the data if the person doesn’t select the checkbox
Checking if the form is working correctly and getting the data if the person selects the checkbox
Checking how to add the BookIt code there.
09/19/23: Second try – The script works, and after removing the return false from the code, the popup showed up and the data filled on the form was submitted to Marketo.
09/19/23: Third try – The form works fine, checking or not checking the checkbox.
Next step: How to fire the BookIt Script here as well. Perhaps a global function?
09/22/23: Fourth try – I found a way to open BookIt if the person selects the checkbox, but since the form is still submiting it reloads the page.
What can we do?
10/05/23: Fifth Try – The thing is that we need to make BookIt to load it before firing, but I still don’t know how to load the function but only fires if the user checks a checkbox.
WP_Query Object
(
[query] => Array
(
[name] => testing-open-bookit-after-selecting-a-checkbox-on-the-form
[post_type] => resources
[resource-type] => info
)
[query_vars] => Array
(
[name] => testing-open-bookit-after-selecting-a-checkbox-on-the-form
[post_type] => resources
[resource-type] => info
[error] =>
[m] =>
[p] => 0
[post_parent] =>
[subpost] =>
[subpost_id] =>
[attachment] =>
[attachment_id] => 0
[pagename] =>
[page_id] => 0
[second] =>
[minute] =>
[hour] =>
[day] => 0
[monthnum] => 0
[year] => 0
[w] => 0
[category_name] =>
[tag] =>
[cat] =>
[tag_id] =>
[author] =>
[author_name] =>
[feed] =>
[tb] =>
[paged] => 0
[meta_key] =>
[meta_value] =>
[preview] =>
[s] =>
[sentence] =>
[title] =>
[fields] =>
[menu_order] =>
[embed] =>
[category__in] => Array
(
)
[category__not_in] => Array
(
)
[category__and] => Array
(
)
[post__in] => Array
(
)
[post__not_in] => Array
(
)
[post_name__in] => Array
(
)
[tag__in] => Array
(
)
[tag__not_in] => Array
(
)
[tag__and] => Array
(
)
[tag_slug__in] => Array
(
)
[tag_slug__and] => Array
(
)
[post_parent__in] => Array
(
)
[post_parent__not_in] => Array
(
)
[author__in] => Array
(
)
[author__not_in] => Array
(
)
[search_columns] => Array
(
)
[ignore_sticky_posts] =>
[suppress_filters] =>
[cache_results] => 1
[update_post_term_cache] => 1
[update_menu_item_cache] =>
[lazy_load_term_meta] => 1
[update_post_meta_cache] => 1
[posts_per_page] => 10
[nopaging] =>
[comments_per_page] => 50
[no_found_rows] =>
[order] => DESC
[makeHeroFullScreen] =>
)
[tax_query] =>
[meta_query] => WP_Meta_Query Object
(
[queries] => Array
(
)
[relation] =>
[meta_table] =>
[meta_id_column] =>
[primary_table] =>
[primary_id_column] =>
[table_aliases:protected] => Array
(
)
[clauses:protected] => Array
(
)
[has_or_relation:protected] =>
)
[date_query] =>
[queried_object] => WP_Post Object
(
[ID] => 10609
[post_author] => 42
[post_date] => 2023-09-12 14:13:06
[post_date_gmt] => 2023-09-12 14:13:06
[post_content] =>
[post_title] => Testing open BookIt after selecting a checkbox on the form
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => testing-open-bookit-after-selecting-a-checkbox-on-the-form
[to_ping] =>
[pinged] =>
[post_modified] => 2023-10-05 16:52:21
[post_modified_gmt] => 2023-10-05 16:52:21
[post_content_filtered] =>
[post_parent] => 0
[guid] => https://marketing-staging.quorum.us/?post_type=resources&p=10609
[menu_order] => 0
[post_type] => resources
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
[queried_object_id] => 10609
[request] => SELECT wp_posts.*
FROM wp_posts
WHERE 1=1 AND wp_posts.post_name = 'testing-open-bookit-after-selecting-a-checkbox-on-the-form' AND wp_posts.post_type = 'resources'
ORDER BY wp_posts.post_date DESC
[posts] => Array
(
[0] => WP_Post Object
(
[ID] => 10609
[post_author] => 42
[post_date] => 2023-09-12 14:13:06
[post_date_gmt] => 2023-09-12 14:13:06
[post_content] =>
[post_title] => Testing open BookIt after selecting a checkbox on the form
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => testing-open-bookit-after-selecting-a-checkbox-on-the-form
[to_ping] =>
[pinged] =>
[post_modified] => 2023-10-05 16:52:21
[post_modified_gmt] => 2023-10-05 16:52:21
[post_content_filtered] =>
[post_parent] => 0
[guid] => https://marketing-staging.quorum.us/?post_type=resources&p=10609
[menu_order] => 0
[post_type] => resources
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
)
[post_count] => 1
[current_post] => -1
[before_loop] => 1
[in_the_loop] =>
[post] => WP_Post Object
(
[ID] => 10609
[post_author] => 42
[post_date] => 2023-09-12 14:13:06
[post_date_gmt] => 2023-09-12 14:13:06
[post_content] =>
[post_title] => Testing open BookIt after selecting a checkbox on the form
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => testing-open-bookit-after-selecting-a-checkbox-on-the-form
[to_ping] =>
[pinged] =>
[post_modified] => 2023-10-05 16:52:21
[post_modified_gmt] => 2023-10-05 16:52:21
[post_content_filtered] =>
[post_parent] => 0
[guid] => https://marketing-staging.quorum.us/?post_type=resources&p=10609
[menu_order] => 0
[post_type] => resources
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
[comment_count] => 0
[current_comment] => -1
[found_posts] => 1
[max_num_pages] => 0
[max_num_comment_pages] => 0
[is_single] => 1
[is_preview] =>
[is_page] =>
[is_archive] =>
[is_date] =>
[is_year] =>
[is_month] =>
[is_day] =>
[is_time] =>
[is_author] =>
[is_category] =>
[is_tag] =>
[is_tax] =>
[is_search] =>
[is_feed] =>
[is_comment_feed] =>
[is_trackback] =>
[is_home] =>
[is_privacy_policy] =>
[is_404] =>
[is_embed] =>
[is_paged] =>
[is_admin] =>
[is_attachment] =>
[is_singular] => 1
[is_robots] =>
[is_favicon] =>
[is_posts_page] =>
[is_post_type_archive] =>
[query_vars_hash:WP_Query:private] => a09da32c81f6650ae845ab1e75a19f8a
[query_vars_changed:WP_Query:private] =>
[thumbnails_cached] =>
[allow_query_attachment_by_filename:protected] =>
[stopwords:WP_Query:private] =>
[compat_fields:WP_Query:private] => Array
(
[0] => query_vars_hash
[1] => query_vars_changed
)
[compat_methods:WP_Query:private] => Array
(
[0] => init_query_flags
[1] => parse_tax_query
)
)
!!! 10609