Is it possible to pass the GUID for Form Data object in the template?
I'm creating a plug-in that takes some values from the form data, and I'd like to be able to just pass the GUID instead of the actual values from various fields. Once the other plug-in receives the GUID, it should be able to retrieve the object and the respective fields. Am I thinking (ELGG)-correctly?
Thanks!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Ed Borhan@edborhan
Ed Borhan - 0 likes
- Ed Borhan@edborhan
Ed Borhan - 0 likes
- Newbrie@Newbrie
Newbrie - 0 likes
- Kevin Jardine@kevin
Kevin Jardine - 0 likes
You must log in to post replies.How can I get the content GUID in the form HTML template?
I figured to use javascript to read the id from the url.
Hey Ed,
It is of course accessible from the $vars['entity']->guid variable, which I have done for forms_data listings. But I would also like to bind other standard elgg entity fields to form fields - e.g. most form entries have a 'title' field, which I would like to bind to the $vars['entity']->title field. This makes form listing and river entries a lot more informative than they are currently.
Newbrie
Just to note that the latest version of the form plugins now supports a {$_guid} template field.