Thanks. I found out that the syntax error cased by the regular expression. Once i adjust the regular express as below:
From:
var regExp = /^([a-zA-Z0-9_\.\-\/#\$%'\?@+])+\@(([a-zA-Z0-9_\.\-\/#\$%'\?@+])+\.)+([a-zA-Z0-9_\.\-\/#\$%'\?@+])+$/;
To:
var regExp = new RegExp("^([a-zA-Z0-9_\.\-\/#\$%'\?@+])+\@(([a-zA-Z0-9_\.\-\/#\$%'\?@+])+\.)+([a-zA-Z0-9_\.\-\/#\$%'\?@+])+$");
The syntax error was disappear and can preview the guide.
However, i am facing another problem now.
The change event of the textfield (Address) works well in PDF Form. The code as below:
**************************************************************
form1.Page1.Address::change - (JavaScript, client)
app.alert(xfa.event.change);
**************************************************************
However, the change event cannot be fire on Form Guide. Moverover, once exit the textfield, the following error throw out:
**************************************************************
script execution error : form1[0].Page1[0].Address[0]:change
ReferenceError: Error #1069: Property change not found on xfamx.scripting.EventNode and there is no default value.
.
.
.
**************************************************************
any ideas?