F
Flash
Guest
Dear All,
I have created a Form with an InputField using hiCreateStringField()
and I want to check the entered string if it has reached a length of 10
(during typing).
Therefore I use the ?modifyCallback argument as follows:
***
l_field=list(hiCreateStringField(
?name 'strfield
?prompt "Prompt"
?modifyCallback "if(strlen(Form->strfield->value)<=10
then x=t
else x=nil)"
?value "xyz"
) 0:30 200:30 100)
***
The Form works properly until I try to enter something into the field.
Then I get this:
Form->strfield->value="xyzq"
*Error* eval: not a function - 'strfield
*Error* car: Can't take car of atom - ERROR
What have I done wrong?
Regards
Flash
I have created a Form with an InputField using hiCreateStringField()
and I want to check the entered string if it has reached a length of 10
(during typing).
Therefore I use the ?modifyCallback argument as follows:
***
l_field=list(hiCreateStringField(
?name 'strfield
?prompt "Prompt"
?modifyCallback "if(strlen(Form->strfield->value)<=10
then x=t
else x=nil)"
?value "xyz"
) 0:30 200:30 100)
***
The Form works properly until I try to enter something into the field.
Then I get this:
Form->strfield->value="xyzq"
*Error* eval: not a function - 'strfield
*Error* car: Can't take car of atom - ERROR
What have I done wrong?
Regards
Flash