Maybe if I explain in better detail. I am creating 3 forms.
1. Person
2. Department
3. Company
The idea is that there is a Person document for each company.
In the Company Form, there is a Department TextArea section. In that
section would be links to various Department Forms.
In the Department Form, there is a Personnel TextArea section. In that
section would be links to various Person Forms for people who work in that
department.
I would like to standardize the forms to have a consistent document name and
title. They would be:
1. Person - FirstName and LastName
2. Department - Department Name
3. Company - Company Name
I would like to save the document name and title when they save the
document.
For Company and Department, if I could expose the Title field to be edited
by the user and just give it the "Department Name" or "Company Name"
label,
then that would work. For the Person Form, I would have to combine two
fields with a space between them.
I thought of using a JavascriptExtension to do this. I saw where you can
listen for the save event. Unfortunately I could not find how to reference
the various fields of the document from JavaScript.
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Change-Title-On-Save-tp7589667p7589709.ht…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.