You are viewing limited content. For full access, please sign in.

Question

Question

Hide table or field until checkbox is checked.

asked on June 11, 2014

 I am trying to have a specific table or field hidden until a user checks a check box which will then unhide the table or field.

 

Setup:

So, just as a test, I want to be able to show the field q27 in table q24  and the field q28 when the check box in table q15 is checked otherwise have the table and the field hidden. 

 

Thanks!

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on June 12, 2014 Show version history

This is a bug in Forms where the condition field (checkbox in your case) is a row of a table.

 

To workaround the matter, you can remove your email table and instead use a "Section" element followed by a "Checkbox" and then configure the rule based off of that. You can modify your current form or use the new copy of the altered business process/form that I've attached here.

 

Regards

0 0

Replies

replied on June 11, 2014 Show version history

You should be using Field Rules for this. It can check to see if the Sign Me Up checkbox is checked and if so, show the other fields.

 

Something similar to this should work

 

1 0
replied on June 12, 2014 Show version history

Okay I tried using those doing everything possible and still no effect. 

Some Field Rules:

Result:

I've tried variations and this was the last thing I tried with all the rules in there at once.

Do you know how to do this in js ?

0 0
replied on June 12, 2014

Here is the form I put together to replicate what you have.

 

Here is how I setup the Field Rules

*Notice I changed your table name to Email Addresses to distinguish it from the email field.

0 0
replied on June 12, 2014

Okay, I copied your set up exactly:

 

Field Rules:

 

Form Result:

 

Any ideas why it wouldnt work?

0 0
replied on June 12, 2014

Do you have anything else in the form with the name Email Address? You may be selecting the wrong one.

0 0
replied on June 12, 2014

All I have are the tables Emails and Email Address, and the text field Email.

0 0
replied on June 12, 2014

Josh,

 

What's the exact version of Forms being used? Also, can you export your business process, change the file extension from xml to txt, and then attach it here? That way we can take a look at it to see why the field rule may not be working for you.

 

Regards

0 0
replied on June 12, 2014

Laserfiche Forms Version 9.1.1.1517

 

I dont have anything in my process, I'm just editing a single form.

0 0
replied on June 12, 2014

When you export your business process, it will include your form. Your form is what we're going to specifically look at.

0 0
replied on June 12, 2014

It should be attatched, I was also trying to do this in js. This is as far as I got:

$('.update').onchange=function(){$('.email input').val("asl;dfasd")};

If we cant get the field rules to work, how would I code this?

0 0
APPROVED ANSWER SELECTED ANSWER
replied on June 12, 2014 Show version history

This is a bug in Forms where the condition field (checkbox in your case) is a row of a table.

 

To workaround the matter, you can remove your email table and instead use a "Section" element followed by a "Checkbox" and then configure the rule based off of that. You can modify your current form or use the new copy of the altered business process/form that I've attached here.

 

Regards

0 0
replied on June 12, 2014

Thank you! Its working.

0 0
replied on June 12, 2014

That is a pretty bad bug, I cant even use any of the values from the tables for field field rules to show/hide other elements of the form.

0 0
replied on June 12, 2014

Can I ask why you are putting it in a table rather than just a field by itself?

0 0
replied on June 12, 2014

Just formatting. Having 3 fields beside each other rather than one seperate field per line.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.