C
|
cgphp 11/29/2011 |
In the "Process record values" event of the edit page, enter the following code: $values['state'] .= "extra info"; |
|
7542 11/29/2011 |
Hi |
C
|
cgphp 11/29/2011 |
Post a screenshot of wat you want to achieve. |
|
7542 11/29/2011 |
Hi |
|
7542 11/29/2011 |
Hi |
C
|
cgphp 11/29/2011 |
If you want to dinamically show a link when the dropdown value changes you can use javascript. |
|
7542 11/29/2011 |
Hi |
C
|
cgphp 11/29/2011 |
Sorry, it's not very clear for me what you want to do. Could you post or send me (via PM) a demo link ? |
S
|
stiven 11/29/2011 |
where are you placing this code?? Hi No I do not want to do it dependent of the value changing. I wish that this code would work [size="2"]//get the edit control var[/size] [size="2"]$copy_field = $xt->getvar("state_editcontrol");[/size] [size="2"]//add after the closing </select>[/size] [size="2"]$copy_field.="a link to recorlds";[/size] [size="2"]//Assign the control back with the custom link[/size] [size="2"]$xt->assign("state_editcontrol",$copy_field);[/size] Would work. I get a the word Array displayed instead of the drop down menu. i.e "Array followed by the link" the drop down menu works fine if i do //get the edit control var $copy_field = $xt->getvar("state_editcontrol"); //Assign the control back with the custom link$xt->assign("state_editcontrol",$copy_field);[/size] [color="#1C2837"] the drop down menu shows the word Array if i add the following line [color="#1C2837"][font="arial, verdana, tahoma, sans-serif"][size="2"]//add after the closing </select>[/size] I hoped that their was a simple answer but it does not seem so Thanks |
|
7542 11/29/2011 |
Before Display event. Thanks |
C
|
cgphp 11/29/2011 |
Try this: $copy_field = $xt->fetchVar("state_editcontrol"); |