[pmwiki-users] ZapForms and Input Select

The Editor editor at fast.st
Tue Apr 10 10:34:53 CDT 2007


On 4/10/07, Nicholas Buttle <nicholas_buttle at yahoo.com> wrote:
> hi
>
> Can anyone show me how to integrate these two?
>
> 1.  An input select based upon the Profiles Group
>
> (:if false:)
> [[#dropdownlist]]
> (:input select name=n {=$FullName} "{=$Name}":)
> [[#dropdownlistend]]
> (:if:)
>
> (:pagelist fmt=#dropdownlist group=Profiles:)
>
> and
>
> 2.  Dan's Inlist snippet for ZAP.
>
> [[#ID]]
> ||border=0
> ||'''You are:''' ||{$AuthId}
> ||'''List:''' ||{$:mylist}
>
> (:if inlist {$AuthId}|mylist|Snippets.InList:)
> * You are in the list.
> (:if ! inlist {$AuthId}|mylist|Snippets.InList:)
> * You are not in the list.
> (:ifend:)
>
> (:zapform:)
> (:messages:)
> (:input submit button "Add Me":)  (:input submit
> button "Drop Me":)
> (:zap if1="equal '{button}' 'Add Me' ?
> mylist=+{$AuthId}":)
> (:zap if2="equal '{button}' 'Drop Me' ?
> mylist=-{$AuthId}":)
> (:zap mylist="":)
> (:zap savedata="mylist":)
> (:zapend:)
> [[#ID]]


A couple quick questions first...

1) Do you need the add me and drop me options or just the add me?

2) Would you rather have checkboxes so you can add multiple names at a
time? Or perhaps just do an updatable list with all current members
checked?

Let me know and I'll tweak the code for you.  I'd kind of like
something like this for myself.

Cheers,
Dan



More information about the pmwiki-users mailing list