I applied this in a blank new form and it worked fine:
form1.page1.Table1.Row1.Cell1.mandatory = "error";
Thanks for responding Diego,
I tried it and it works fine, but, what if the table has 27 rows and two mandatory cells in each row?
Is there someway to combine them into one line of script? To do them individually will require 54 lines of script just for one table, assuming one line of script for each mandatory cell. The form I creating will eventually have four hidden tables, each with a similar number of rows.
You can use bit of scripting to count the no.of rows and according to that you can loop through them. But before that you need to check the table structure. Can you show the table structure?