Problem with Showif & Applescript

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15272
interpreted = N
texte = Hi,I'm trying to make a replacement for the RequiredFields capability built into HTML. If a required field is missing, it would show a custom message. The values passed come from the form.The applescript works and returns a 1 if placed on the page alone. The show if works if typed like this [showif 1=1][showif [applescript] set HasEmptyField to 0 if [name] = then set HasEmptyField to 1 end if if [address] = then set HasEmptyField to 1 end if if [city] = then set HasEmptyField to 1 end if if [state] = then set HasEmptyField to 1 end if if [zip] = then set HasEmptyField to 1 end if return (HasEmptyField) [/applescript]=1]Blah Blah Blah[/showif]Why does this not work?Phil MarshallSignal Advertising 58 E State Street Montpelier, VT 05602 802-229-4149 http://www.signalz.com phil@signalz.com Associated Messages, from the most recent to the oldest:

    
  1. Problem with Showif & Applescript (Phil Marshall 1997)
Hi,I'm trying to make a replacement for the RequiredFields capability built into HTML. If a required field is missing, it would show a custom message. The values passed come from the form.The applescript works and returns a 1 if placed on the page alone. The show if works if typed like this [showif 1=1][showif [applescript] set HasEmptyField to 0 if [name] = then set HasEmptyField to 1 end if if [address] = then set HasEmptyField to 1 end if if [city] = then set HasEmptyField to 1 end if if [state] = then set HasEmptyField to 1 end if if [zip] = then set HasEmptyField to 1 end if return (HasEmptyField) [/applescript]=1]Blah Blah Blah[/showif]Why does this not work?Phil MarshallSignal Advertising 58 E State Street Montpelier, VT 05602 802-229-4149 http://www.signalz.com phil@signalz.com Phil Marshall

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Next X hits (1996) WebCat2 - storing unformatted date data? (1997) Configuring E-mail (1997) WebCatalog/Mac 2.1b2 New Features (1997) Missing from Docs [folderName] (1997) Sorting by date (1997) HELP WITH DATES (1997) WebCat2b15MacPlugin - [protect] (1997) Emailer (1997) triggering an update of two frames (1998) Mystery File - Solved (2005) updating with ProductEditor (1998) [WebDNA] UTF-8 encoding issues (2010) Encyption mail was Suggestions for Topics ... (1998) VBScript and WebDNA (2003) trouble updating records in database (1998) Running 2 two WebCatalog.acgi's (1996) WC2.0 Memory Requirements (1997) Search bug. Help (2002) [quantity] within formulas (1997)