How can I specify default value for certain input field?
By
PawelGIX, in General Support
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By Robin S
Page Reference Default Value
Most ProcessWire core inputfield types that can be used with a Page Reference field support a "Default value" setting. This module extends support for default values to the following core inputfield types:
Page List Select Page List Select Multiple Page Autocomplete (single and multiple) Seeing as these inputfield types only support the selection of pages a Page List Select / Page List Select Multiple is used for defining the default value instead of the Text / Textarea field used by the core for other inputfield types. This makes defining a default value a bit more user-friendly.
Note that as per the core "Default value" setting, the Page Reference field must be set to "required" in order for the default value to be used.
Screenshot
https://github.com/Toutouwai/PageReferenceDefaultValue
https://modules.processwire.com/modules/page-reference-default-value/
-
By closer12
Hi, i am new on processwire.
I have a field name is "price" ..
and i want to show this field in the template if price is written,
but if not i want to display text " plase ask " ...
I filled placeholder text but it doesnt display.
this is very simple but i dont know php , can you help me?
-
By SwimToWin
Is there a way to set a default value in the editing interface for a Field? For instance, for a Text, Integer or Page field used in a Template.
For example, lets say I have a template called Songs with the field Length. Length has default value 3:00 (minutes). When I create a new Song Page, the Length field should appear pre-populated in the editing interface with the "3:00" default value.
-
By RyanJ
Based on the structure below, "employee", "department" and "year" are simply place holder "pages". Each have been assigned a blank template and contain only a title field which is required. They serve no other purpose.
The issue I was seeing is that I could access these pages in the url directly. For example, root/location1/employee/ would simply display a blank page. This is undesirable for me as it made me fell empty and marking the page as hidden in the back-end did not resolve the issue. So I saw the option unpublished in the back-end and it works perfectly.
I then found Ryan's post here which explains a lot but this example I think deserves its own topic. Would my handling of this be considered advisable or would something else be a better solution, like a 301? I noted that marking a page hidden excludes it from the find() method, but I simply grabbed the children by their templates.
Location 1
- Employee
-- John Doe
--Jane Doe
- Department
-- Confused Department
--Even More Confused
-Year
-- 2013
-- 2014
-
By lenoir
Hey there,
I have a page field in the form of radio buttons, where the user can select the importance of the article: Very important, important, normal.
I would like to make the default value "normal", but can't think of any way of doing it.
Any help?
Thanks
-