Styling a required input field

Is there a way to make a required form field besides adding the required attribute? I’m adding required=“true” but it doesn’t seem to do anything. I’d like to show a red underline (or I can add it manually if it’s not supported).

@kerrishotts do we support this yet?

No; there’s no HTML5 validation supported yet. Public versions of XD do not currently support style overloads for input fields either. I’d suggest calling out invalid fields separately (perhaps with an icon to the right or left of the field)

1 Like