Skip to main content
Participant
May 24, 2017
Question

Is there a way to have the outline of a form box appear only when that field has been filled?

  • May 24, 2017
  • 1 reply
  • 1210 views

Is there a way to have the outline of a form box appear only when that field has been filled?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
May 24, 2017

Sure. Use this code as the field's custom validation script:

event.target.lineWidth = (event.value=="") ? 0 : 1;

Participant
May 24, 2017

Thank you so much for your response!! So it's kind of working... when I put that script in there then test it out, it still shows the line on two sides even when it's not filled... it also still prints a blank box if it isn't filled. Any tips?

try67
Community Expert
Community Expert
May 24, 2017

Try disabling the fields highlighting option.