Wrote JS to show/hide field groups based on selected layout.