We will need more code to help you... Regards
Richard On Tue, Mar 20, 2012 at 10:15 AM, Rakesh Singh <rak...@verifaction.co.za>wrote: > Hi All, > > Apologies if this has been covered before but I cannot seem to find the > appropriate solution in the archives or in the web2py book. > > I am using SQLFORM.grid to generate an interface into my table. > Some of my fields in the table are only required based on other inputs. > As a simple example, if the user is an individual, the Identity Number > field must be completed. > But if it is a business, the Company Registration Number field must be > completed. > > I read the Conditional Field section in the book, but I cannot seem to get > it to work on my form. > Also, my table name and columns have quite a few underscores, so I'm not > sure if this is affecting the jQuery syntax. > eg. NCS_SARS_DECLARANT is the table, RECORD_TYPE is the column > If I understand correctly, I should have : > jQuery('#NCS_SARS_DECLARANT_RECORD_TYPE__row').hide() ? > > What is the suggested way in achieving this? > > Many thanks. > > Regards, > > Rakesh > > Running Web2py Version 1.99.7 > > > > > >