Currently testing Form Builder module. Input in the Markup component will not save. Title and Form key save fine but the contents of the Markup field will not save and display as "empty markup field" once changes are saved.
Other components like textfield, text area, email, radios, select lists, and fieldsets all save normally.

Any idea what could cause this? I thought it might be a mod_security issue where the code was getting stripped out, but I don't think it's that because nothing showed in the server logs.

--details--
Drupal 6.22
Form Builder 6.x-1.3
Webform 6.x-3.18
jQuery UI 1.7.3
jQuery Update 1.3.2

Update: If I disable Form Builder and just use Webform I can save Markup. Tested just to make sure.

CommentFileSizeAuthor
#1 d6_store_markup_value-1870710-1.patch615 bytesJamesK

Comments

JamesK’s picture

Title: Mark components will not save. Display as "empty markup field". » Markup component value is not saved
Version: 6.x-1.3 » 6.x-1.x-dev
Assigned: Unassigned » JamesK
Category: support » bug
Status: Active » Needs review
StatusFileSize
new615 bytes

I was having the same issue. Here is a patch.

wfx’s picture

Thank you, JamesK! I will test this out. You rule!

wfx’s picture

Tested the patch and it works! Thanks again!

wfx’s picture

Any idea if this patch will get added back to Formbuilder? I'd like to add this module to our website but I'm reluctant to put it on a production site.

JamesK’s picture

Status: Needs review » Reviewed & tested by the community

We need quicksketch to put eyes on it.

wfx’s picture

True. I think he's swamped at the moment working on the WYSIWYG in core initiative. Hopefully he will have time to look at Form Builder once that work calms down.

avergara’s picture

Status: Reviewed & tested by the community » Needs work

Thank you for this patch JamesK. Worked like a charm.

However, to avoid duplicates of the 'markup' property, I think we should comment out 'markup', from the properties array in the function _form_builder_webform_form_builder_types_markup()

Off-topic: The input format is also not being saved: https://drupal.org/node/2114355

avergara’s picture

Issue summary: View changes

Added update about testing when Form Builder is disabled and attempting to save Markup with just Webform.

JamesK’s picture

Assigned: JamesK » Unassigned
Issue summary: View changes

I've stopped using Form Builder.

torotil’s picture

Status: Needs work » Closed (won't fix)

It seems that I'm the only active maintainer of form_builder at the moment and I'm not supporting 6.x-1.x since I don't use Drupal 6. Is this also reproducible in 7.x-1.x?

torotil’s picture