Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

How to get LiveCycle Designer forms to ignore default text in fields when validating

Avatar

Former Community Member

Hiya,

I'm testing out Designer ES4 to build a simple form that's submitted via email. 

Everything is working except for my text boxes...  They are set up as required fields but because I've included default text with instructions, if you press submit without editing the fields they're not validating as empty and not throwing an error message. 

I’ve been searching the forums all day for a fix, but I’m too new to understand where to put code etc.  I’ve tried adding

'text{!=placeholder}' in the validation pattern box but that doesn’t work… 

All I have is LiveCycle Designer and I’m on windows 7.  Thanks for your help!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

There is a script editor.  If you select the field then you will be able to select the event in the "Show" drop down (above the "Design View" tab), then the code window will become active and you can enter your code.  You can expand it from the default of one line.

Good luck

Bruce

View solution in original post

4 Replies

Avatar

Level 10

Hi,

Maybe the approach used here http://adobelivecycledesignercookbookbybr001.blogspot.com.au/2013/05/problem-ghost-text-is-common-wa... would acheive what you are after.  In this sample I show the tooltip as a null{text} display pattern, but you could just hard code the text.

Regards

Bruce

Avatar

Former Community Member

Thanks Bruce - this looks like exactly what I'm after!

I have a really noob question though - where do I go to enter code?!  Below is a screenshot of what I'm looking at - can you please talk me through how to make your suggested changes?

Do I do it on the 'xml code' tab or somewhere else?

liveCycle view.png

Avatar

Correct answer by
Level 10

Hi,

There is a script editor.  If you select the field then you will be able to select the event in the "Show" drop down (above the "Design View" tab), then the code window will become active and you can enter your code.  You can expand it from the default of one line.

Good luck

Bruce

Avatar

Former Community Member

OMG it works!!!  You're brilliant, thanks so much!