06-05-2012 12:57 AM
06-05-2012 03:39 AM
<form id="${el}-form" method="POST" action="${url.context}/proxy/alfresco/acme/custom/personemailwebscript" enctype="application/json">
<h3>Create Person</h3>
<label>${msg("label.name")}:<input name="person.name" tabindex="0"/></label>
<label>${msg("label.phone1")}:<input name="person.phone[]" tabindex="0"/></label>
<label>${msg("label.phone2")}:<input name="person.phone[]" tabindex="0"/></label>
<input type="submit" id="${el}-ok-button" value="${msg("button.ok")}" tabindex="0"/>
</form>
var form = new Alfresco.forms.Form(this.id + "-form");
this.widgets.okButton = Alfresco.util.createYUIButton(this, "ok-button", null, { type: "submit" });
form.setSubmitElements(this.widgets.okButton);
form.init();
POST /share/proxy/alfresco/acme/custom/personemailwebscript
{
person:
{
name: "A name",
phones: [ "123", "456"]
}
}
json.get("person")
02-04-2014 09:47 AM
06-07-2012 07:46 PM
01-29-2014 12:06 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.