This topic is locked

Format input fields

8/14/2007 8:42:25 PM
ASPRunnerPro General questions
J
johnhberry author

I would like to format some input fields on an add page and an edit page using some javascript. I am using AspRunner5.0. I found a post in which it was suggested that the script should be called from the add page template replacing the generated code with the code to call the script. I tried this but I get a smarty.asp error in line 251 "unterminated string constant". I can make the script work by inserting it in the visual html editor but the entered data is not saved to the database. Any help would be appreciated.
I replaced:
{build_edit_control

field="PRI_FNAME" mode="add"

value=$value_PRI_FNAME}
with

<input name="convert" onkeyup="sCase()">
Thanks,
John B

Sergey Kornilov admin 8/14/2007

First of all you need to see the actual HTMl code generated by the following code snippet:
{build_edit_control field="PRI_FNAME" mode="add" value=$value_PRI_FNAME}
After that you can paste it to the Visual Editor and add onkeyup event.

J
johnhberry author 8/15/2007

First of all you need to see the actual HTMl code generated by the following code snippet:

{build_edit_control field="PRI_FNAME" mode="add" value=$value_PRI_FNAME}
After that you can paste it to the Visual Editor and add onkeyup event.


Thanks for prompt reply,
I don't understand where to put my onkeyup event. Is is done iin the add page template or the add page which I can edit from visual editor?
Thanks,

John B

Sergey Kornilov admin 8/15/2007

Changes need to be made in Visual Editor.