Skip to content

Commit

Permalink
Updated the code with latest redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
teshukatepalli1 committed Nov 21, 2023
1 parent 3f633ef commit a6346b8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/aem.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,16 @@ function isForm() {

function buildForm(hbspt) {
formConfigData.forEach((formData) => {
hbspt.forms.create({
const config = {
region: formData.region,
portalId: formData.portalid,
formId: formData.formid,
target: `#${formData.target}`,
});
};
if (formData.redirecturl) {
config.redirectUrl = formData.redirecturl;
}
hbspt.forms.create(config);
});
}

Expand Down
8 changes: 8 additions & 0 deletions styles/Typo.css
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ body.purple #content ul li::before {
button,
input,
optgroup,
.hs-form input[type="submit"],
select,
textarea {
color: inherit;
Expand Down Expand Up @@ -629,6 +630,7 @@ textarea:focus {
button,
input[type="button"],
input[type="reset"],
.hs-form input[type="submit"],
input[type="submit"] {
background-color: var(--primary-color);
border-radius: 5px;
Expand Down Expand Up @@ -674,6 +676,7 @@ input[type="submit"] {
.hs-button:hover,
.readmore:hover,
button:hover,
.hs-form input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
Expand Down Expand Up @@ -1582,3 +1585,8 @@ form.hs-form .hs-input[type="checkbox"] {
.hs-blog-social-share-list .hs-blog-social-share-item::before {
content: ''!important;
}

.block.subscribe .hs_submit {
padding-bottom: 0
}

0 comments on commit a6346b8

Please sign in to comment.