Default "Campus" on New Family Block to the Campus of the Person Filling Out the Form

 This will be a quick post, I just wanted to save a snippet that was recently brainstormed and hatched by a group in the Slack team...  By default if there's only one campus, Rock will pre-fill that campus on the "New Family" block, logically enough. But once there are multiple campuses, it defaults to blank and you have to set it yourself. The request posed in Slack was to find if there was a way to set a default. The block doesn't have an option built-in for you to set this, so short of doing some development work, we'll have to do that with some JavaScript in the Post-HTML field on the block.  You could set up a different page for each campus and accomplish it easily enough, by adding the following line to the Post-HTML field of the "New Family" block: <scrip...

Read More

Add an Access Log to Any Rock Page

A simple way to add an log to any Rock page to see who has viewed it using a Dynamic Data Block and some SQL.

Read More

Snippet: Print a Financial Batch Summary

Does your accounting team wish there was a button to print the financial batch summary, without printing the entire page? This (updated) post demonstrates using Page Parameters in Lava, Post HTML fields and jQuery to "inject" such a button into an existing block.

Read More

Default "Campus" on New Family Block to the Campus of the Person Filling Out the Form

If you have multiple campuses, taking the time to have to select the correct campus for a new family you're registering can be a little annoying. jQuery and Lava to the rescue: this post provides a workaround by which you can have the value be pre-selected based on the campus of the person filling out the form, which should be correct in most cases.

Read More