I've created a module which has a number of settings, one of which uses a custom field type defined within my module. The custom field essentially generates a dropdown list which is populated with data.

To decide which data should be added, though, I need to access some other parameters in the settings file. I've tried using $this->form->getValue(param) where param is the name of the field I'm trying to access, but it returns nothing.

Couldn't find anything specific in the documentation for this.

  • I assume you putting the name of the param in quotes like so ->getValue('param')
    – Lodder
    Commented Oct 14, 2015 at 19:35
  • @Lodder I am. The actual call looks like $this->form->getValue("fallBeginning") Commented Oct 14, 2015 at 19:36

1 Answer 1


You probably forgot to specify container of the form fields. Your code should be something like

$this->form->getValue('fallBeginning', 'container')

if your field has actual html code like

<input type="text" name="container[fallBeginning]" value="x">

The container value depends on your xml definition, what is the name of fields. For example

    <fields name="container">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.