Object value

18 views
Skip to first unread message

Alejandro Martinez

unread,
Aug 6, 2014, 5:18:16 PM8/6/14
to agile-too...@googlegroups.com
Hi,

How can I access a form field value before the submit ?

Maybe I don't have explained this question before.

Watching the objects properties (http://agiletoolkit.org/doc/core/add ) I see that there are different Items, like:

short_name
name
elements
owner
etc

If I do this

$f=$p->add('Form');
$emp=$f->addField('dropdown','item')->setValueList( array('1'='1','2'=>'2')) ;
$emp->js('change')->univ()->alert($emp->short_name);

The result is an alert box saying 'item'.

How can I access the 'item' value (for instance '1' ) ?

I have tried with elements ( $object->elements) but with no luck.

Thanks a lot


Romans Malinovskis

unread,
Aug 11, 2014, 5:34:26 PM8/11/14
to agile-too...@googlegroups.com
Hi Alejo

I have created a short tutorial about this topic:


Please tell me if this helped you with your problem.


romans

Alejandro Martinez

unread,
Aug 15, 2014, 1:45:11 PM8/15/14
to agile-too...@googlegroups.com
Romans,

sorry for my late response.
This tutorial was really very helpfull and helped me to do what I was trying.

The final result was more simple that what I was doing. Really simple.

Thanks again.
Alejandro



--
You received this message because you are subscribed to the Google Groups "Agile Toolkit Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agile-toolkit-d...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Romans Malinovskis

unread,
Aug 17, 2014, 10:11:20 PM8/17/14
to agile-too...@googlegroups.com
As always ;)


Feel free to request more topics for tutorials, I'd like to have plenty before launch.


To unsubscribe from this group and stop receiving emails from it, send an email to agile-toolkit-devel+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages