Tags:
create new tag
view all tags

SID-01490: Formatting form fields

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Formatting form fields
SupportCategory CategoryForms
TWiki version 5.1.1
Server OS Ubuntu Server 10.04
Web server Apache
Perl version

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2012-09-05 - UrielVertiz
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.