Skip to content

Instantly share code, notes, and snippets.

@keirbowden
Created September 27, 2014 07:31
Show Gist options
  • Save keirbowden/311b50ec0d23c6231da9 to your computer and use it in GitHub Desktop.
Save keirbowden/311b50ec0d23c6231da9 to your computer and use it in GitHub Desktop.
Action Region, Required Fields and HTML5 Controller
public with sharing class RequiredCtrl
{
public List<Row> rows {get; set;}
public String name {get; set;}
public Account acc {get; set;}
public RequiredCtrl()
{
rows=new List<Row>();
rows.add(new Row());
}
public void addRow()
{
rows.add(new Row());
}
public void save()
{
// fake save method - just returns to the page
}
public class Row
{
public String val1 {get; set;}
public String val2 {get; set;}
public String val3 {get; set;}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment