If you would like to ask a question about the framework, click the here to do so Ask a Question
You can use the c() function to display an alert message or a popup window as shown below:
<?php
protected _load() {
// display an alert popup box
c()->alert('Hello');
// displays a popup window
$url = 'another-page.html';
c()->popup($url);
}
?>
To retrieve all the element values within a form use the RaxanElement->inputValue() as shown below:
<?php
protected function saveForm() {
// returns the value of #form1 input elements as an associative array
$values = $this->form1->inputValues();
}
?>
To set the values of the elements within the form in a single call you can pass an array of value to inputValues() method:
<?php
protected function loadForm() {
$data = array(
'name' => 'John Brown',
'email' => 'jbrown@somewhere.com',
'subject' => 'Web site development',
);
// sets the value of #form1 input elements
$values = $this->form1->inputValues($data);
}
?>