SID-01490: Formatting form fields
| Status: |
Answered |
TWiki version: |
5.1.1 |
Perl version: |
|
| Category: |
CategoryForms |
Server OS: |
Ubuntu Server 10.04 |
Last update: |
13 years ago |
Hi,
I have setup a contact database application based upon the
ContactDbAddOn. I have added extra fields and would like to use some basic formatting to split the form fields into different groups. I have done this using standard Twiki formatting for the new contact page, but can't figure out how to get the formatting to work for the view/edit pages. Any formatting I add, no matter where I add it, all appears before the form and its corresponding fields.
Example: I want something like:
Personal Details
| Salutation |
Salutation Details |
| Name |
Name Details |
Business Contact Details
| Salutation |
Salutation Details |
| Name |
Name Details |
However, if I put the relevant header code between the various META:FIELD commands in my contact template file the output is:
Personal Details
Business Contact Details
| Salutation |
Salutation Details |
| Name |
Name Details |
| Salutation |
Salutation Details |
| Name |
Name Details |
How do I add formatting such as headers when using forms and META fields?
Thanks,
Lee
--
LeeCartwright - 2012-06-15
Discussion and Answer
If I understand correctly you'd like to have more control over the form when editing the form. Read "Field Name Notes" in
TWikiForms - you can use type label and leave the name empty.
There is no control over viewing a form in terms of sections with headings. However, you can define a custom layout using form fields, like done in the ContactHeader.
--
PeterThoeny - 2012-06-15
Creo debes de verificar los meta datos para poder editar los campos con raw=debug
--
UrielVertiz - 2012-09-05
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.