Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update contact form to form block #1616

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
da46a18
initial commit
bluedeepart Jan 24, 2025
22cc60b
test: salesforce value
bluedeepart Jan 24, 2025
1b7a93c
test: salesforce value
bluedeepart Jan 24, 2025
122e7e5
test: salesforce value
bluedeepart Jan 24, 2025
6ce183d
test: salesforce value
bluedeepart Jan 24, 2025
271bca1
test: salesforce value
bluedeepart Jan 24, 2025
911b87a
test: salesforce value
bluedeepart Jan 24, 2025
db029a7
test: salesforce value
bluedeepart Jan 24, 2025
3c43269
test: salesforce value
bluedeepart Jan 24, 2025
d9b000c
test: salesforce value
bluedeepart Jan 24, 2025
104aa7c
added styling
bluedeepart Jan 27, 2025
5377b86
minor update
bluedeepart Jan 27, 2025
8b63fd1
fixed thankyou message section
bluedeepart Jan 28, 2025
d503999
updated submit button width
bluedeepart Jan 28, 2025
607b762
test: cmp id
bluedeepart Jan 28, 2025
882c8d5
test: cmp id
bluedeepart Jan 28, 2025
a15ecbb
test: cmp id
bluedeepart Jan 28, 2025
31e3b2b
test: cmp id
bluedeepart Jan 28, 2025
5c5bb48
updated region
bluedeepart Jan 28, 2025
743fbf8
updated region
bluedeepart Jan 28, 2025
1587d91
updated region
bluedeepart Jan 28, 2025
274be46
added product title field
bluedeepart Jan 28, 2025
1cec8d0
update cmp cases according to module
bluedeepart Jan 29, 2025
6ee501e
reverted: update cmp cases according to module
bluedeepart Jan 29, 2025
bf8180f
test cmp
bluedeepart Jan 29, 2025
7afb672
added comment param
bluedeepart Jan 29, 2025
67f6e91
updated cmp value
bluedeepart Jan 30, 2025
d03552e
minor fixes
bluedeepart Jan 30, 2025
5bcf0d1
updated column padding
bluedeepart Jan 30, 2025
1f4bd63
updated cmp to live
bluedeepart Jan 30, 2025
6db3e93
reverted:updated cmp to live
bluedeepart Jan 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed thankyou message section
  • Loading branch information
bluedeepart committed Jan 28, 2025
commit 8b63fd1e31bb0998ff85d81dd8295b8b76f20c4b
3 changes: 2 additions & 1 deletion blocks/get-in-touch/get-in-touch.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@

.get-in-touch .show-label .hs-form .hs-error-msgs.inputs-list,
.get-in-touch .show-label .hs-form .hs-form-field label.hs-error-msg {
margin-top: 10px;
margin-top: 6px;
text-transform: unset;
}


Expand Down
5 changes: 1 addition & 4 deletions blocks/get-in-touch/get-in-touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,14 @@ function scrollToForm(link, region) {

export default async function decorate(block) {
const queryParams = new URLSearchParams(window.location.search);
const hubspotUrl = block.querySelector('[href*="https://info.moleculardevices.com"]');
const mapUrl = block.querySelector('[href*="https://maps.google.com"]');
// block.querySelector('p:last-child').remove();
// console.log(block);

/* set success msg */
if (queryParams.has('msg') && queryParams.get('msg') === 'success') {
const getInTouchBlock = document.querySelector('.get-in-touch');
const successMsg = block.lastElementChild.firstElementChild;
successMsg.classList.add('hubspot-success');
hubspotUrl.closest('div').replaceWith(successMsg);
block.firstElementChild.firstElementChild.replaceWith(successMsg);
block.lastElementChild.remove();
createMap(block, mapUrl);
setTimeout(() => {
Expand Down
Loading