Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Help with JavaScript.


Level 1

Hi Experts -

I have a JavaScript that worked well in Acrobat. Its function is to tick a checkbox when text is entered into a text field.  I'm trying to apply the JavaScript to do the same thing to another set of boxes (text field and checkbox) in LifeCycle. 

In LifeCycle - I have entered the JavaScript in Script editor, and have 'Show: Validate*'.  Unfortunately it is not working - any help  greatly appreciated. JavaScript from  forum expert kindly supplied is: 

this.getField("checkbox 1").checkThisBox(0, (event.value!=""));

Kind regards


3 Replies


Level 10

Hi Kevin,

A LiveCycle form has a different object model than an Acroform.  You might want to start with this information LiveCycle Learn & Support  .

But you probably want to have some JavaScript in the calculate event of the checkbox that refers to the text field, so works the other way round to the code you have, something like;

TextField1.isNull ? 0 : 1;

(You don't need a return keyword)

This assumes you haven't change the default checkbox values of on/off from 1 and 0.




Level 1

Thank-you, appreciate your reply. 

I'm going to look into this now. 

Thanks again


The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now