Jump to content

is there a list of core field options/properties for module development?


Recommended Posts

I am trying to make a module and it should create some pages during installation but I need a list of the field type properties/parameters that I can use with the field types.

I've found http://cheatsheet.processwire.com/fields/field-properties/  and https://processwire.com/api/variables/fields/

neither shows the properties available such as how to make a field "required", or format a date field's input or output etc

I'd like to format some dates, require some fields and stuff like that

thanks in advance

Link to comment
Share on other sites

If you go to a field's settings in the admin and then open the Request Info panel in TracyDebugger you'll see this. It's most of the settings available, but some like "required" doesn't show unless you have it checked for the field in question.



Alternatively, also while visiting a field's settings, you can do this in the Console Panel:


  • Like 4
Link to comment
Share on other sites

Besides Adrian's excellent suggestions...

Many of the common inputfield properties are outlined here: https://processwire.com/api/ref/inputfield/

For properties specific to a particular inputfield type you can read the code comments in the core files, or if you have the very handy API Explorer pro module you can browse the properties in a nice interactive interface within the PW backend:


  • Like 5
Link to comment
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.
  • Create New...