[pmwiki-users] Advice on Fox form design

noskule noskule at gmx.net
Sat Nov 1 06:41:37 CDT 2008


Graham Archer schrieb:
> Thank you for this advice _ I think this is the right way to go.!
>
> However I get an error when I try the test form.
> Error: no target specified!
>
> I tried replacing redirect with target in the code but this still gave 
> the same error.?
>
> Thanks
>
> Graham

hm, here it works : 
http://demo.netstreams.org/cms/index.php/Main/WikiSandbox. ,maybe a 
copy/paste error?




>
> noskule wrote:
>> Graham Archer schrieb:
>>   
>>>     
>>
>> it sounds like get vars (Cookbook:HttpVariables) could help you. Try 
>> something like this:
>>
>>
>> (:fox Test redirect={$$formname}?gVar={$$gVar}:)
>> (:input select formname {*$FullName} "Go to Form 1":)
>> (:input select formname {*$FullName} "Go to Form 2":)
>> (:input select formname {*$FullName} "Go to Form 3":)
>>
>> (:input select gVar case1 "case 1":)
>> (:input select gVar case2 "case 2":)
>> (:input select gVar case3 "case 3":)
>>
>>
>> (:if equal {$?gVar} case1:)case 1: specific fields here
>> (:elseif equal {$?gVar} case2:)case 2: specific fields here
>> (:elseif equal {$?gVar} case3:)case 3: specific fields here
>> (:else:)no case defined
>> (:ifend:)
>>
>> (:input submit post "Go":)
>> (:foxend Test:)
>>
>>
>>
>> grz nos.
>>
>>
>>
>>   
>>> In my mind I would like the user to choose an item from above, and 
>>> then from that choice the next set of sub-choices are displayed, from 
>>> which the user makes a choice again and so on until the correct 
>>> outcome can be determined and  a message/link to the correct wikiform 
>>> be displayed via the template.
>>>
>>> I thought about doing this with ptvs - but if there are several people 
>>> accessing the page  I think that would result in user b would see part 
>>> of a page in use at the time by user a - so I have not taken this route.
>>>
>>> I would welcome any advice on how best go about this.
>>>
>>> Thanks in advance
>>>
>>> Graham
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> pmwiki-users mailing list
>>> pmwiki-users at pmichaud.com
>>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>>   
>>>     
>>
>>
>> _______________________________________________
>> pmwiki-users mailing list
>> pmwiki-users at pmichaud.com
>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>   




More information about the pmwiki-users mailing list