Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Underlining just the fillable text

Avatar

Former Community Member
I made a form where my boxes are underlined. While filling out the form, some boxes show the underline while filling, others don't. But my main problem is, I want all the fields to have an line visible when printing; that way, if the end-user chooses just to print it and handfill it out, the lines will be there. I don't want lines under the captions. Using the Underline in the font area is not what I'm looking for. Actually, maybe a script to fill the bottom border of the fillable part??

Any ideas??
1 Reply

Avatar

Former Community Member
hmm...the biggest problem is that you just want lines under the captions.



you could have a subform which overlies the textfields which just contains lines under the boxes.



then for this subform, on preprint you could have

this.presence = "visible"



and for postprint you could have this.presence = "hidden"



Alternatively if you only want lines under the fields that are empty, you could set the preprint method for every textfield to



if (this.rawValue == null)

(this.rawValue = ............................)



and the postprint method back to



if(this.rawValue == .......................)

{ this.rawValue = null}