Hi, I have a client who wants to rewrite the webform results page to better match his needs. The forms he is dealing with normally have a "Name" and "Date" component, and he wants them displayed, rather than the drupal user, ip address, etc of the current form. This is partly because it is expected that most submissions will be Anonymous, in Drupal terms.
I'm putting an issue in because the current dev form seems to need to dereference the component name too soon: the behaviour I would like is that, if the node for the submission has a component with a name, then that submission/component's value is displayed in the view.
I think this can be achieved by a DB Join on the webform_component table, so that instead of :
"select ... from webform_submitted_data as wsd where wsd.cid=X and ..."
you get a
"select ... from webform_components as wc, webform_submitted_data as wsd where wc.name=X and wsd.cid = wc.cid and ... "
I would hope in this way to avoid the need to select the nid in the views UI as well. I would like a null-string to be returned when the submitted form has no component with the given name.
Am I talking sense here?
Comments
Comment #1
outlierdavid commentedFollowed.
Comment #2
quicksketchWebform's Views integration requires that you add a relationship for "Webform submission data" if you want to filter or sort on a field within that webform. Is that what you're looking for?
If you're talking about modifying the display of individual components, maybe something like #1830370: Hook to add additional submission information in downloads is what you're looking for?
Comment #3
quicksketch