markom
10th September 2002, 12:45
I have two fields on form for report. The report can't be printed if this fields are empty. How can I write a script?

isspace()

mark_h
10th September 2002, 15:11
First you could make the fields mandatory input on the form. This would force the users to enter data.

Second you could use check.input section to make sure they are not empty. You would also use check.all.input() before printing.


field.x:
check.input:
if isspace(x) then
message("Some error")
set.input.error("")
endif

choice.cont.process:
before.choice:
check.all.input()
execute(print.data)



Third you could do the check in the print data section:

choice.print.data:
on.choice:
if(isspace(x)) then
message("Some error.")
choice.again()
endif



Your choice. Good Luck!

Mark

markom
11th September 2002, 09:08
Thanks it's working