AnsweredAssumed Answered

How to prepopulate a field in editview?

Question asked by Jaume Albaigès on Apr 26, 2014
Latest reply on Aug 3, 2015 by Francesca Shiekh
I have a custom module. I would like to have a certain field filled with a dinamically generated value when user creates a new record in this module.

I have seen both in old forums that I should create a view.edit.php file in custom/modules/mymodule/views/

and in this file set something like:
$this->bean->myfield = myvalue

I've been trying many ways of doing this (using display and preDisplay functions, etc.) but can't get it to work.

I would really, really appreciate if somebody could show me the code for that file.

Thanks in advance!

Outcomes