Possible to Autofill Text Field?

Hi All,

I’m trying to see if it is possible to autofill a textbox with the value of another field in the same module.

If you look at the screenshot, I want the “subject” textbox to read “Call Report for {parent_name}”

Any help would be appreciated.


I think that what you would like to achieve could be done with logic hooks.

I can think of two ways:

  1. Using a before_save (or also after_save) logic hook
    In the logic hook you have to pick the data from the “parent account” and add it to the subject field. The result won’t be seen until you view the record again.
    In both cases (specially in the after_save) you have to be careful not to trigger an infinite loop by using the bean save() function.

  2. Using an after_ui_frame logic hook
    With this type of logic hook you could create some javascript that does this dynamically for you

If you are not familiar with logic hooks you can have a look here:

and here:

to start familiarising.

Thanks very much for your reply. I’m not familiar with logic hooks so i’ll use the links you posted to start reading up on them.

I also recommend that you have alook here too: