Tags:
create new tag
view all tags

SID-02107: Need to change formfield "Name" to "Title"

Status: Answered Answered TWiki version: 6.0.1 Perl version: 5
Category: CategoryForms Server OS: RedHat Last update: 10 years ago

Hi,

I just discovered that if I had my forms with a Title field instead of Name, it would have simplified a lot of things!

Now that I have loads of topics with these forms attached, I don't know how to do that without breaking everything... Any Ideas?

here is what I tried without success :

  • I tried to add a Field Title to the form with the value : $formfield(Name)
  • I tried to add a Field Title to the form with a search for $formfield(Name)
  • I tried to update the Field Title with $formfield(Name) from the header :
%EDITFORMFIELD{ "form" type="start"  topic="%BASEWEB%.%BASETOPIC%" method="get" }%
%EDITFORMFIELD{ "Title" topic="%INCLUDINGTOPIC%" type="hidden" value="%SEARCH{ "^%INCLUDINGTOPIC%$" scope="topic" regex="on" nonoise="on" format="$formfield(Name)"}%" }%
%EDITFORMFIELD{ "form" type="end" }%

Help!

-- Sebastien Digard - 2015-10-01

Discussion and Answer

I recommend to do a global search and replace using the GlobalReplacePlugin. Take a backup before the mass changes, it is easy to make a mistake with regular expressions.

-- Peter Thoeny - 2015-10-01

I recommend to do a global search and replace using the GlobalReplacePlugin. Take a backup before the mass changes, it is easy to make a mistake with regular expressions.

-- Peter Thoeny - 2015-10-01

The plugin doesn't want to install... I did it manually, topic by topic. I learned my lesson!

-- Sebastien Digard - 2015-10-01

      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 Need to change formfield "Name" to "Title"
SupportCategory CategoryForms
TWiki version 6.0.1
Server OS RedHat
Web server Apache
Perl version 5
Browser & version Firefox
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2015-10-01 - SebastienDigard
 
  • 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-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.