PROBLEM:
Custom-made webform component does not work correctly when using the Webform API.
The component value does not display when the user invokes Results -> View, but the value does display when the user invokes Results -> Edit on the webform node in which the custom component was used.
STEPS TO REPRODUCE:
* Create a custom module called 'webform_transit'
* Create a custom component within that module, called dreftytext ... make it identical to the textedit component in all other respects
* Place the custom code inside /modules/webform_transit/components/dreftytext.inc
* in the function _webform_theme_dreftytext, specify the file specification below
* in the function webform_transit_webform_component_info, specify the file specification below
* (the file specification assumes a path relative to the webform module ... this will break if webform and webform_transit are not children of the same parent directory)
'file' => '../webform_transit/components/dreftytext.inc', // BUGNAG: issue_13171769244312731
* complete all other code of the custom component as normal
* submit a webform entry supplying a value for the input of the custom component
| Comment | File | Size | Author |
|---|---|---|---|
| webform-bug-example-001b.png | 8.97 KB | dreftymac | |
| webform-bug-example-001a.png | 12.78 KB | dreftymac |
Comments
Comment #1
dreftymac commentedIssue resolved: _webform_display_dreftytext relies on an existing theme function webform_display_textfield ... text search and replace changed it to webform_display_dreftytext which was a non-existent theme function.