Field Default
Last updated May 16th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn moreThe Field Default Rule¶
The Field Default Rule, when set, will automatically set the default value of a field.
This will only work on "create" pages, not "update" pages.
Examples¶
An example Rule of setting the default Category for a Snippet for all Users in the User Group HR Department would look like this:
See Also¶
[[getResources@section? &parents=`122` &context=`revolution`]]
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn more