I've written a "Webform Locked Fields" module that is intended to interoperate with the Webform Default Fields module. You can read about it here:

http://drupal.org/sandbox/sheldon/1292788

The Webform Locked Fields module is not dependent upon Webform Default Fields, but (for my use case at least) it is designed to extend functionality of Webform Default Fields. Rather than create a separate project, therefore, I think it might make sense to bundle both modules together as a single Drupal project.

Webform Default Fields makes it possible to define default fields that will be created whenever someone creates a new webform. The Webform Locked Fields module can "lock" the default fields (or any fields, really) so that they cannot be subsequently modified or deleted by unauthorized users.

My use case for this is the website of the New York State Senate, which lets individual senators and their staffs create webforms for surveying their constituents. Survey responses need to be captured programmatically upon form submission so that they can enter the senate's contact relationship management system. We therefore need to have some standardized contact fields (name, address, etc.), and we want to ensure that individual senators will not change those fields and interfere with proper functioning of the scripts that we have written to capture that data. The Webform Default Fields module therefore enables us to create the default fields, and Webform Locked Fields lets us lock them against changes.

Please let me know if you are interested in adding the locked fields functionality to your existing Webform Default Fields module. I don't think there is a lot of standalone utility to the Locked Fields module all by itself, but it does add some functionality that I would like to add to your existing project if you're interested.

Comments

baxpace’s picture

Any plans on releasing a D7 port? This is exactly what I'm looking for to allow authenticated members to edit their node post but keep them from editing any default webform fields for that content type.

Cheers,

- jared

sheldon rampton’s picture

Status: Active » Needs review

I've gone ahead and released my Webform Locked Fields module as a separate Drupal module, with Drupal 6 and Drupal 7 versions:

http://drupal.org/project/webform_locked_fields

I still think it would be preferable to bundle it with Webform Default Fields, so for the time being I'm leaving this ticket open.

baxpace’s picture

Brilliant! I can't thank you enough. I'll try it out right away!

baxpace’s picture

Works great! Users are still able to re-arrange the order in which the webform fields are displayed though. Any way this can be locked down or just hide the webform tab all together?

Aside from that, this is perfect!

Thanks again,

- Jared

sheldon rampton’s picture

Hi Jared. I couldn't figure out an easy way to prevent users from rearranging the order of locked webform components while still letting them edit the rest of the webform. I thought ensuring that the locked fields exist and do't change is the most important thing.

sheldon rampton’s picture

Status: Needs review » Fixed
sheldon rampton’s picture

Status: Fixed » Needs review

Unmarking "fixed" since I still think it would be better to bundle webform_locked_fields with webform_default_fields.

hoter’s picture

Status: Needs review » Closed (works as designed)

Sorry for the very very late response :) We have observed your module and after a few years we still think that your module must be a different project. If you still want it, we can discuss this question.