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

penone created an issue. See original summary.

Liam Morland’s picture

A form submission has an 'sid'. Try calling dpm() on $form and $form_state to see what values are available.

Liam Morland’s picture

Status: Active » Fixed

If you need more help, please re-open and provide details.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Prabu_Ela’s picture

dpm($form['information']['#webform_submission']->get('sid')->value);
It will give you sid on webform edit