Jump to content

Where can i write Javascript code?


Recommended Posts

You can add JavaScript code to HTML block or to Header and Footer.

All field names in the DataPage, correspond to the following rule:

New Web Form - name has a prefix InserRecord;

Update/Details Web Form - name has a prefix EditRecord;

The name of the virtual field for all types of pages has a prefix cbParam;

Name field on the Search & Password recovery DataPages, based on the following formula: prefix "Value" + field display order + _ + field criteria display order. For example, if you have one field with one criteria on search page, field name will be "Value1_1".

<script type="text/javascript">
	alert(document.getElementById("InsertRecordStateName").value);
</script> 
Link to comment
Share on other sites

Sorry, but i have inserted the script but it not works.

I explain the situation:

- one field of form is called state

- so i insert in the form header this code:

<script type="text/javascript">
vat state=document.getElementById("state");
if (state != "aperto")
then alert("State can be only aperto.");

Where is the mistake?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...