Hello,
I want to show the result of a javascript as default value in a text box.
If I put this in a custom field everything is displayed.
<SCRIPT>document.write(myFunction());</SCRIPT>
So the script is ok.
If I put this in as field value in a text box I only see the code as string…
How is it possible to save this value in a $form->data[value]? Perhaps with ajax?
Kind regards
Astrid
I want to show the result of a javascript as default value in a text box.
If I put this in a custom field everything is displayed.
<SCRIPT>document.write(myFunction());</SCRIPT>
So the script is ok.
If I put this in as field value in a text box I only see the code as string…
How is it possible to save this value in a $form->data[value]? Perhaps with ajax?
Kind regards
Astrid