I'm using Rules forms module to set a field value in one of the custom content types I have created.

The value of form-state variable seems to be empty for all events provided by the Rules Forms Support module.
I'm not sure if I'm missing some step here.

I've followed the steps as mentioned in the documentation for Rules Forms Support module, to enable the form actions.

I have 2 questions here.

  1. Why is the form-state value empty on form submission?
  2. How can I update a value of a field on form submission through Rules Forms Support?

Below is an image of the debug value of form_state on form submission

Below is an image showing the Rules

Thanks in advance.

Comments

vncnttejas’s picture

Issue summary: View changes
StatusFileSize
new23.61 KB
vncnttejas’s picture

Issue summary: View changes
vncnttejas’s picture

Issue summary: View changes
andy.alexander’s picture

I am also seeing this happening as well.

I may look into what's causing it - I really want to use this module so I can change whether a form is submitted at runtime.

xaris.tsimpouris’s picture

I can verify this is is an issue

xaris.tsimpouris’s picture

StatusFileSize
new1.38 KB

And attached is a patch that solves the issue of empty arrays. Haven't tested it thoroughly yet.
Note: this is a patch for the 1.x-dev version