Get ready for BLACK FRIDAY shopping starting in

Forums

PHP

This topic is locked

show if commands

Posted 04 Apr 2009 15:58:11
1
has voted
04 Apr 2009 15:58:11 Chris Trace posted:
here tis a tricky one

i have two spry collapse panels

each are dependent upon a show if empty and shor if not empty command

the first is an insert record behaviour with empty form fields

the second is an edit with an auto pop from the returned record set

The thing is tho - i get an object expected error when the field is empty as the latter relying on the returned record set is missing as there is NO DATA

how can i replace the show if recordset not empty with a script/behaviour that does the following:

1. Check that there is either A: a returned record then B: display C: being the add recordset with blank form fields OR then D: display the html code where there is a returned record set so that E: the edit form reliant upon the dataset can be displayed

any help would be appreciated

Cheers

Replies

Replied 05 Apr 2009 11:44:39
05 Apr 2009 11:44:39 Chris Trace replied:
got it thanks!
was looking for the jscript still

Reply to this topic