/swish/lib/form.pl
AllApplicationManualNameSummaryHelp

  • swish
    • lib
      • messages.pl
      • paths.pl -- Setup SWISH search paths
      • config.pl -- Make HTTP locations known to JSON code
      • page.pl -- Provide the SWISH application as Prolog HTML component
      • help.pl -- SWISH help system
      • search.pl -- SWISH search from the navigation bar
      • chat.pl -- The SWISH collaboration backbone
      • storage.pl -- Store files on behalve of web clients
      • gitty.pl -- Single-file GIT like version system
      • gitty_driver_bdb.pl -- Gitty BDB driver
      • gitty_driver_files.pl -- Gitty plain files driver
      • patch.pl -- Run patch program
      • authenticate.pl -- Authentication access for SWISH
      • pep.pl -- SWISH PEP (Policy Enforcement Point)
      • avatar.pl -- Avatar management
      • noble_avatar.pl -- Noble Avatar generator
      • chatstore.pl -- Store chat messages
      • content_filter.pl -- Ban list content filter
      • include.pl -- Support :- include(File) from SWISH
      • swish_csv.pl -- Support CSV output from a Pengines server
      • examples.pl -- Serve example files
      • md_eval.pl -- Provide evaluable markdown
      • profiles.pl
      • highlight.pl -- Highlight token server
      • markdown.pl -- SWISH Notebook markdown support
      • template_hint.pl -- Generate template hints for CondeMirror
      • render.pl -- SWISH term-rendering support
      • web.pl -- Serve /plugin
      • version.pl -- Manage software versions
      • oauth2.pl -- Oauth2 based login
      • form.pl -- Form handling utilities
        • validate_form/2
        • validate_field/4
      • bootstrap.pl -- Bootstrap form generator
      • session.pl -- Setup SWISH sessions
      • trace.pl --
      • projection.pl -- Define the projection
      • attvar.pl
      • jquery.pl -- Call jQuery on the SWISH interface
      • dashboard.pl -- Provide non-programmer query execution
      • html_output.pl -- SWISH HTML Output
      • swish_debug.pl
      • procps.pl
      • flags.pl
      • swish_chr.pl -- Make CHR available in SWISH
 validate_field(+Dict, +Field, -Value, +Options) is det
True when Value is a valid value for Field from Dict according to Options. Options is a list of processing steps taken to convert and validate the value. Defined steps are:
alnum
All characters must be alphanumeric
alnum_and_spaces
All characters must be alphanumeric or spaces
atom
Convert input to an atom
string
Convert input to a string
default(Term)
Use Term as value if no value appears in the input.
downcase
Convert input to lower case
email
Input must be a value E-mail address.
url
Input must be a valid absolute URL
url(Scheme)
Input must be a valid absolute URL of type Scheme. Using http also allows for https
float
Value is converted to a floating point number.
integer
Value is converted to an integer.
length>N
The value must have at more than N characters
length>=N
The value must have at least N characters
length=<N
The value must have at most N characters
length<N
The value must have at less than N characters
number
Value is converted to a number (integer or float)
oneof(List)
Input must be a member of List.
password
Input must be a reasonable password.
strip
Strip leading and trailing white space and normalize internal white space to a single space.
term
Input is parsed as a Prolog term