How to add new fields to redbox form (e.g. to management.vm)

18 views
Skip to first unread message

se...@intersect.org.au

unread,
Sep 4, 2013, 12:14:37 AM9/4/13
to redbo...@googlegroups.com
Hi Andrew,

How are you going?

I am working on customise the forms of redbox workflow, e.g. management.vm (screenshot shown below).

If I need to add new fields (redbox:retentionPeriod.dc:date) to this form, could I do it by

1) adding the following content to management.vm?

 <p>
        <input type="text" size="60" placeholder="retention period date" id="redbox:retentionPeriod.dc:date" />
        #requiredValidation("redbox:retentionPeriod" "Retention Period is required!")
    </p>

2) add the id to the form-fields list in dataset.vm.

And could you tell me how does it work? I know the value of id should match the field name, but I do not where is the code to assign the field value to the input widget.


Andrew Brazzatti

unread,
Sep 8, 2013, 10:37:43 PM9/8/13
to ReDBox Developer List
Hi Sean,

It doesn't look like you should need to do much else. That's all I've had to do in the past to add a field:

You might have to debug your way through this method in the widgets.js to find out why it isn't being sent through to the server.

Andrew

On Wed, Sep 4, 2013 at 1:44 PM, <se...@intersect.org.au> wrote:
Hi Andrew,

How are you going?

I am working on customise the forms of redbox workflow, e.g. management.vm (screenshot shown below).

If I need to add new fields (redbox:retentionPeriod.dc:date) to this form, could I do it by

1) adding the following content to management.vm?

 <p>
        <input type="text" size="60" placeholder="retention period date" id="redbox:retentionPeriod.dc:date" />
        #requiredValidation("redbox:retentionPeriod" "Retention Period is required!")
    </p>

2) add the id to the form-fields list in dataset.vm.

And could you tell me how does it work? I know the value of id should match the field name, but I do not where is the code to assign the field value to the input widget.


--
You received this message because you are subscribed to the Google Groups "ReDBox Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redbox-dev+...@googlegroups.com.
To post to this group, send an email to redbo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/redbox-dev/7461544d-09a2-4179-b8b6-d4e5497732b3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages