Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am trying to get the sid of a form but am not getting back any data.
What I have used in the past was the following:
$sid = $form_state['values']['details']['sid'];
This worked in the past (7.x-4.15) but is not working now (7.x-4.16).
Has something changed?
Comments
Comment #2
Liam MorlandA form submission has an 'sid'. Try calling dpm() on $form and $form_state to see what values are available.
Comment #3
Liam MorlandIf you need more help, please re-open and provide details.
Comment #5
Prabu_Ela CreditAttribution: Prabu_Ela commenteddpm($form['information']['#webform_submission']->get('sid')->value);
It will give you sid on webform edit