Hi,
I'm assigning a CSS class to custom HTML, Single Line, and Drop-downs inside a collection. I'm wanting those fields to have a border. In the Form Designer, it reflects. In the Preview or when starting the form, it does not.
In Form Designer:
Previewing the form:
Question
Question
CSS not reflecting when previewing form or on Message Start Event
Answer
Okay, I see the problem.
The collection has conflicting border rules it is using. You can force your CSS to take priority with the !important tag.
.demo {
border: 1px solid black!important;
}
Replies
Just an update, I've tried giving it a different class name. It appears that assigning CSS classes to fields outside the collection reflect just fine. Fields within the collection do not reflect. Also, if anyone is reading this do we just reach out to our VAR to get some acknowledgement? It is not reassuring to post and get 0 replies.
Please post the CSS code you are using. It's difficult to try to help identify the issue without the actual code you are using.
Hi Matthew,
Sure! I'm also including pictures to show the CSS classes.
Inside Designer:
Test 2 has this:
My CSS:
.demo {
border: 1px solid black;
}
Preview mode:
As you can see, Test 2 is missing the border.
Okay, I see the problem.
The collection has conflicting border rules it is using. You can force your CSS to take priority with the !important tag.
.demo {
border: 1px solid black!important;
}
Ah. Perfect! Thank you so much! I don't recall having to do this before.