neosin Posted March 15, 2018 Share Posted March 15, 2018 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 More sharing options...
adrian Posted March 15, 2018 Share Posted March 15, 2018 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: 4 Link to comment Share on other sites More sharing options...
Robin S Posted March 15, 2018 Share Posted March 15, 2018 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: 5 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now