Very many thanks Steve,
Now very very close, but not quite there yet
a) Menu now appears correctly in all tables
b) Email validators
I am developing on a windows environment, so email validation doesn't work as
the 'checkdnsrr' function is not implemented on the Windows platforms. I get
the following warning message (top of page) with an invalid email message by the email prompt;
Warning: preg_match() [function.preg-match]: Empty regular expression in C:\inet\CSAF\dataface\lib\HTML\QuickForm\Rule\Regex.php on line 61
Hopefully when I upload to my online host all will be well.
c) Have added the
beforeInsert trigger code
i) This code
only inserts data on writing to the database
ii) It does
not pre-populate the 'registeredusername' prompt. Basically
I am looking for a mechanism that enables one to set a dynamic
default value on the form. (a beforeDisplay type trigger)
c) To hide the 'submissions' label in the box around the form I adjusted the css by adding 'display: none;' as follows;
legend {
background: White;
padding: 0.5em;
font-size: 90%;
display: none;
}
d) after_action_new trigger
I had already implemented this (see my second posting above). The problem was
that I was a logged in user, so the redirection wasn't being implemented. As
all menu options now appear correctly on all pages (point a above), I just
simply removed the $user check to ensure redirection always occurs to the
success page.
Only point now o/s is a mechanism to preset defaults on the form. As a side
issue to default setting, I do have the following queries with the Find form;
1) If a user does a search (via find), and discovers that the number of records
is vast (my database has over 90000 records and growing), how do I prefill the
the find boxes with their previous search values so that they can easily refine
their criteria. I have stored the find entries in the ENV array variable, so just
need to know how to pre-populate the individual search prompts with these values.
2) One of the prompts is the year of publication. How do I ensure that any entry
is exactly a four digit integer within a specified range (upper limit being the
current year)?
3) Another potential search prompt is a table column which has a choice of two enum
values (say 'A' and 'B'). I would like the search to optionally ignore this, effectively
allowing the user to choose either 'All' (default), 'A' or 'B' and not just 'A' or 'B'.
How does one achieve this, noting the need to reset the default value to its previous setting
if the page is reloaded (a clear all settings button would be a nice feature too, but miracles can wait)?
Just love the depth of functionality available
Trevor