Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

checkbox standard value problem

Avatar

Level 1

Hei!

I have a problem with a form created in Life Cycle Designer 8.2 (on win7):

The form has several yes/no checkboxes. I want this checkboxes to be off when the form is opened.

In the object tab i can choose the standard value. On some checkboxes it works fine - on the last two it isn't.

I copied and renamed the working ones but that doesn't help.

Does anyone have a hint for me where to look for a solution?

You can see the form here:

https://acrobat.com/app.html#d=SkIFUF4gRvOyFiYHEzBkdw

Greetings from Vienna/Austria!

Peter Strubreiter

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi ßeta,

The issue is that for these two sets of checkboxes the default value for both is "off". Because of the global binding and the reverse values, this was forcing a tick in "nein".

Parallels Desktop1.png

The other checkboxes are a hack, as you have cleared the default value. You must have edited the XML Source to turn off the default value. It works, but I wouldn't recommend it.

Here is the form back with the two checkboxes working, but I would strongly recommend radio buttons.

https://acrobat.com/#d=ifdyhi3ZUr-Auzo*TfNnhw

As you have seen you can set the radio buttons to have a square box appearance, which suits the fill in by hand workflow.

You can have script in the radio buttons to allow users to deselect a choice. Have a look at this example. You need the script in the mouseDown and mouseUp events of the radio button only. You don't need the rest of the script:

http://www.assuredynamics.com/index.php/category/portfolio/changing-the-visual-appearance-of-checkbo...

Hope that helps,

Niall

Assure Dynamics

View solution in original post

6 Replies

Avatar

Level 10

Hi Peter,

You need to "publish" the form on Acrobat.com and then share the published link here:

Acrobat.com.png

It probably is a small settings issue.

Niall

Avatar

Level 10

Hi Peter,

Which checkboxes are giving you trouble, please give object names.

You are using checkboxes with the same name, global binding and opposite/reversed on/off values. This works to a point, but have you considered using radio buttons? They have this functionality built-in.

Niall

Avatar

Level 1

Thanks for the quick reply!

The names of the checkboxes are:

TabelleWartung.Zeile6.batteriegetauscht

TabelleWartung.Zeile5.batteriegetauscht

The first time the error occured was on the top of the form. There is a "switch" to change between different tests. It worked on all other forms i made this week - but on this i had to change it to radio buttons.

You are right, i should switch to radio buttons. It just worked fine with checkboxes in all the other forms i made.

A cool feature is that by ticking off one checkbox the other one gets on. - I have to check if i can do this with radio buttons. But that's just nice to have - so actually not necessary.

The reason why i want to have the checkboxes unchecked is because in the normal process the form is filled on the computer to a certain degree (f. ex. serial number, tester) and than it is printed out so that the tester can complete the form by hand on the testside. It just looks better when the checkboxes are filled out by hand :-)

I now realize that i may have used the forum too early - i started to use life cycle only 3 days ago. The error was stalling me yesterday afternoon for quite some time...

ßeta

Avatar

Correct answer by
Level 10

Hi ßeta,

The issue is that for these two sets of checkboxes the default value for both is "off". Because of the global binding and the reverse values, this was forcing a tick in "nein".

Parallels Desktop1.png

The other checkboxes are a hack, as you have cleared the default value. You must have edited the XML Source to turn off the default value. It works, but I wouldn't recommend it.

Here is the form back with the two checkboxes working, but I would strongly recommend radio buttons.

https://acrobat.com/#d=ifdyhi3ZUr-Auzo*TfNnhw

As you have seen you can set the radio buttons to have a square box appearance, which suits the fill in by hand workflow.

You can have script in the radio buttons to allow users to deselect a choice. Have a look at this example. You need the script in the mouseDown and mouseUp events of the radio button only. You don't need the rest of the script:

http://www.assuredynamics.com/index.php/category/portfolio/changing-the-visual-appearance-of-checkbo...

Hope that helps,

Niall

Assure Dynamics

Avatar

Level 1

Hei Niall

Thank you very much for your help!

Now i think everything is clear for me.

I will use radio buttons and your scripts to switch them off.

I never changed anything in xml, so it must have been a strange coincidence.

Have a blessed christmas time!

ßeta