Views Embed Form Question

tms8707056 - January 29, 2009 - 21:12

I am trying to use the Views Embed Form module to insert a "Close Ticket" button next to each entry in the view. The Close Ticket button would set the value of CCK field_closed. Following the instructions for the form embed module, I have gotten a custom module created with the appropriate function. What I do not understand is how to set the value of that field using the Drupal Form API. Do I pull the element out of the node edit form some how? or do I create a new form to write that value?

If it matters the location of the value in the database is as follows [Root][content_type_fixit_ticket][field_closed_value].

Any help or insight is appreciated.

Figured it out.

tms8707056 - January 30, 2009 - 20:48

Figured it out.

And how do you solved the

tchouk - June 7, 2009 - 16:30

And how did you solve the problem because I'm also interested in changing the value for a particular CCK Fields of a particular node? I'm still looking for the specific path to the field value.

Thanks for replying....

I used the prepopulate module

tms8707056 - June 11, 2009 - 02:26

I used the prepopulate module and created a link for the view that populated the value of the field when the link was clicked. The node must still be saved after clicking the link.

 
 

Drupal is a registered trademark of Dries Buytaert.