1
marijun
XoopsForm grouping
  • 2005/2/16 7:16

  • marijun

  • Just popping in

  • Posts: 53

  • Since: 2004/6/4 1


i'm a little confused by grouping XoopsForm elements. what i need to do (if possible) is have a form that works like so:

- Start XoopsFormTray
-- XoopsFormRadio 1 ('A name', 'W value')
-- XoopsFormRadio 2 ('A name', 'X value')
--- XoopsFormText
-- XoopsFormRadio 3 ('A name', 'Y value')
--- XoopsFormText
--- XoopsFormCheckbox 1 ('B name', 'B value')
--- XoopsFormCheckbox 2 ('C name', 'C value')
--- XoopsFormCheckbox 3 ('D name', 'D value')
--- XoopsFormCheckbox 4 ('E name', 'E value')
--- XoopsFormCheckbox 5 ('F name', 'F value')
--- XoopsFormCheckbox 6 ('G name', 'G value')
--- XoopsFormCheckbox 7 ('H name', 'H value')
-- XoopsFormRadio 4 ('A name', 'Z value')
--- XoopsFormText
- End XoopsFormTray

if that makes sense. the radios all need to have the same name, but each has a different value. only one radio at a time can be checked. the checkboxes all have different names, and the names are the same as the values. any number of checkboxes can be checked at the same time, but they are null if its parent radio isn't checked. same for the textboxes.

i haven't used the xoopsform library before, so go easy on me ;)

is this even possible, or do i need to hardcode it myself?

this form will be for selecting recurring event types in my calendar module. if that helps. the radios are for the recurring type (recur by day, month, year), the textboxes are for the recurring frequency (recur every 1, 2, 3, 4 days, months, years), and the checkboxes are for the days of the week (recur on sun, mon, tue, etc).

any insight would be greatly appreciated.

2
Mithrandir
Re: XoopsForm grouping

As the API is now, there is no way to separate the radio options from each other

3
marijun
Re: XoopsForm grouping
  • 2005/2/16 7:56

  • marijun

  • Just popping in

  • Posts: 53

  • Since: 2004/6/4 1


damn. thanks though!

Login

Who's Online

525 user(s) are online (61 user(s) are browsing Support Forums)


Members: 0


Guests: 525


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits