Form defaults affecting all cck fields simultaneously

nirvanajyothi - September 15, 2008 - 08:45
Project:Form Defaults
Version:6.x-1.0
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:active
Description

After hiding a field which i think was the 'or' text of the fields under 'Attached Images' the error had been shown (attachment:or of Attached Images')
warning: preg_match() expects parameter 2 to be string, array given in /home/host/public_html/includes/bootstrap.inc on line 723.

Then i unhided the field and the error was gone.

But now all the cck field Titles and 'help text' seem to have vanished (attachment:form now) and
when i try to add a title to any cck field in the form the change is carried to all the cck fields in the form.

ie., if i change a title to 'link' all cck field titles appear as 'link'

The normal behaviour was returned after i disabled form defaults on the modules page.(attachment:correct form)

AttachmentSize
form now.JPG29.47 KB
correct form.JPG25.5 KB
or of Attached Images.JPG28.58 KB

#1

metzlerd - September 15, 2008 - 13:58

I'm not sure what happened here, but I'm thinking the best way out is to remove the override text for this field manually. If you're familiar with executing select statements from mysql comman dprompt. . I'd recommend executing something close to the following:

select formid from formdefaults_forms

This will show you the names of the forms that you've overridden, and then execute the following sql sttement to remove it the one that matches.

delete from formdefaults_forms where formid='the formid you found from the select';

One of the most common problems that can happen with formdefaults is entering malformed html into the form. If you forget to close a tag, this can have some pretty bad effects on a form. I'm not sure that's what happened here, but it is often the case.

#2

nirvanajyothi - September 15, 2008 - 15:51

thank you.
sorry i have no idea how to do this and i hadnt added html while editing.

But one thing I am quite sure now is this happens when i hide the -or- of Attached Images (pls see 3rd attachment).The hiding doesnt affect -or- but all other cck fields.

The error persists even after I unhide the -or- .

-thank you

#3

ln282 - March 6, 2009 - 14:55

I'm having the same problem-- I'm using the location module on the form, and I can't change any of the cck field's labels without changing the label for location, and all my help text has disappeared. I'm a newb (which is why I want to use this module-- it seemed like the easy way to fix up some forms on my site). I haven't added an html either.

Off to try to fix this in the database.

#4

t4him - April 12, 2009 - 11:42
Priority:normal» critical

Im changing this to critical because it does have an adverse effect on the form. Fortunately I uninstalled the module without any adverse affects. I dont know the mechanics behind why it does this, but I would think the module should follow the same rules as a normal form label as far as allowable characters.

#5

CarbonPig - July 27, 2009 - 21:37

subscribe - name issue - When I change the title of of field it effects almost all the other filed titles - field types that are changed are text, file upload, image upload - I consider this very critical since you can go back once it's done!

 
 

Drupal is a registered trademark of Dries Buytaert.