Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Framework » DropDown Field values - changing in runtime
Re: DropDown Field values - changing in runtime [message #7680 is a reply to message #7679] Mon, 14 February 2022 04:30 Go to previous messageGo to previous message
htManager is currently offline  htManager
Messages: 439
Registered: May 2014
Senior Member
I added the following code in _cm_changeConfig():

if ($GLOBALS['task_id'] == 'htm_orga_mannschaften_ausruestung_kontakte(add2)') {
// insert some javascript to submit form when a different value is selected in this dropdown list
$this->fieldspec['gr_art']['javascript'] = array('onchange' => 'this.form.submit();');
} // if

Is it right that the following code in the _cm_setJavaScript() method should call the _cm_updateFieldArray() method? Or will the form be sent to the server directly? Because the _cm_updateFieldArray() method will not be called in my class.

// specify javascript events on certain fields
if ($mode == 'insert' or $mode == 'update') {
$this->fieldspec['gr_art']['javascript'] = array('onchange' => 'this.form.submit();');
} // if
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Changing screen look
Next Topic: Importing default values -> enclosed in quotes
Goto Forum:
  


Current Time: Thu Nov 28 03:05:51 EST 2024

Total time taken to generate the page: 0.01415 seconds