I have a simple form like this:
$label=$p->add('View_HtmlElement')->setElement('h4')->set('Test');
$f=$p->add('Form');
$f->addField('Checkbox','click')->js('click')->getElement($label)->set('HELLO WORLD')->execute();
$f->addSubmit('Accept');
I couldn't find the way to make this, I need to change the $label
value from 'Test' to 'HELLO WORLD'.
Is it possible?