Hi, i'm trying to use an onsubmit_callback with my data container.
The problem i'm having is actually using the field values in my method:
It is supposed to check if the 'type' field in my dca that has just been submitted has a value of 'Period' before running some code.Code:public function setPeriod(DataContainer $dc) { if ($dc->type == 'Period') {// run code }
How can i use the values of the submitted fields? I can retrieve an id using $dc->id, so I assumed to get the value of a field name you used $dc->field_name but this doesn't seem to be working.
Thanks

 
			
 
					
					
					
						 Reply With Quote
Reply With Quote

Bookmarks