0

I have a pageblock table where I have a pageblockbutton to add rows. I want to be able to add more rows even if the required fields of existing rows are not filled, i.e., without being shown Error: You must enter a value. Should I be using jQuery?

1
  • Please update your code. What have you tried so far?
    – snehakem
    Jan 14, 2015 at 5:03

1 Answer 1

4

There is a tag on commandButton and commandLink called immediate http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_commandButton.htm

Setting this to true on your addRow button should bypass the page validation.

Note: this will not bypass database validations.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .