BFD Calendar

[solved] Field required based on template

Recommended Posts

Can I make a field required based on the template where it's used? Field -> Input -> Required (yes) -> Required only if "template!=people".

On www.birthfactdeathcalendar.net I have pages about 'events' that require a 'day', 'month' and 'year' value. They are page reference fields. I use the same fields for 'people' pages to store their birthdates, but since I don't always know them the fields are not required there. If I'm right it only works with a selector "field!=something".

Share this post


Link to post
Share on other sites

When creating the field, set is as not required. Then after adding it to your Events template, edit it to Required on the template. That will make it a required field for only that template.

  • Like 6

Share this post


Link to post
Share on other sites

Ah, got that. It wasn't obvious that the field requirement change on the template would only affect the field on that template and not on another.

Phew, all those hidden treasures in PW, I could fill a BFD calendar with discovering just those....

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.