SOLVED

Form layout issues

Go to solution
KaitlynNelson1
Level 3

Form layout issues

Was wondering if anyone has any insight as to why a field on a form is creating styling issues. I cloned a form and when I replace one field with a different value, the layout got skewed. It's a required field, but for some reason they're two asterisks by the field and I can't see why (see screenshot)

 

We have custom head HTML in the meta and js footer script on the landing page to help with the form styling in general and it usually does the trick . Wondering if it's the page or if the form is the issue. 

 

Screenshot 2023-03-30 at 12.25.16 PM.png

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Form layout issues

You‘re hiding the native asterisk container and adding your own via a pseudo-element:

.mktoRequiredField label:after {
 content:"*";
 margin-left:2px
}
.mktoAsterix {
 display:none!important
}

 

You probably meant to have that only apply to non-empty labels:

.mktoRequiredField label:not(:empty)::after {

 

View solution in original post

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Form layout issues

We'd need to see the actual page.
KaitlynNelson1
Level 3

Re: Form layout issues

SanfordWhiteman
Level 10 - Community Moderator

Re: Form layout issues

You‘re hiding the native asterisk container and adding your own via a pseudo-element:

.mktoRequiredField label:after {
 content:"*";
 margin-left:2px
}
.mktoAsterix {
 display:none!important
}

 

You probably meant to have that only apply to non-empty labels:

.mktoRequiredField label:not(:empty)::after {