Expand my Community achievements bar.

validate empty cell in table row

Avatar

Level 5

Hi All.

I create form in LiveCycle with repeat table row. Now I would like to validate each cell in each row that it cannot be empty. If it is possible. How it to do?

Thanks.

3 Replies

Avatar

Level 10

Hi eugzl,

If you have only 1 repeatable row in your table, it is pretty easy to validate fields use a for loop clause

Avatar

Former Community Member

Hi Magus

Appreciate this thread is a year old now but I think I can use similiar code to validate a table I have (see post below)

Validation - user needs to complete at least one field of a table...

One immediate question: where would I put this javascript? What object and what event to trigger?

Thanks

Ellis

Avatar

Level 10

Hi there,

It depends, if you have a specific place in the form which absolutely needs to have this validation passed, you can set it on the enter event of that part...

otherwise you can have a button which will be your validation button for your form, and gives recaps on how to fill the form before submitting it..

Hope this help!