summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--acf/model/field.lua1
-rw-r--r--protocol.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/acf/model/field.lua b/acf/model/field.lua
index cfa14b9..d2e62a5 100644
--- a/acf/model/field.lua
+++ b/acf/model/field.lua
@@ -46,6 +46,7 @@ function Field:meta(txn, path, addr)
name=self.name,
type=self.dtype,
required=self.required,
+ default=self.default,
choice=self.choice,
description=self.description,
['ui-name']=self['ui-name'] or auto_ui_name(self.name),
diff --git a/protocol.txt b/protocol.txt
index 2ac63b9..7e0f3c2 100644
--- a/protocol.txt
+++ b/protocol.txt
@@ -37,6 +37,7 @@ resp: JSON object, with the following attributes:
- widget (name of client-side JS module used to display
the data)
- required (boolean)
+ - default
- max-length
- choices (optional array of allowed values)
- ui-choices (user-friendly choices to be shown in combo