In short, I am trying to figure out how to add a custom and unique identifier to each submission from the Webform module.
Example: User fills out the Webform and submits. User then receives an email (email is captured from email field in Webform) confirming their submission and providing them with a Unique Identifier (ABC-14-001).
I know Webform asks what number to start the next submission (and I’m assuming this is considered the “SID”). If I am to utilize the SID, I need to be able to append the custom “ABC-14” prefix to each submission’s SID.
I’m not very familiar with hooks (sorry for the ignorance), but I understand that hooks might be the only way, or at least most effective way, to accomplish this?
Update Thanks all who responded! I have a working solution right now with this module:
function identifier_webform_submission_presave($node, &$submission) { $component_id = 23; //that's your hidden field $submission->data[$component_id][0] = 'Text to be inserted'; }