List Field Type

12 years 1 month ago #195135 by BlackBoy
List Field Type was created by BlackBoy
Hi,
I want to members select activities from list. Activitity field is required field but members can select the most 3 activities. And every activity has degree from 1 to 5. How can i do ? how can i create a field type ? Thank you.

Please Log in to join the conversation.

12 years 1 month ago - 12 years 1 month ago #195147 by bk6366
Replied by bk6366 on topic Re: List Field Type

I want to members select activities from list.

Components > Community Builder > Field Management: 'New Field' > 'Activity' (dropdown / multiselect / etc)


Activitity field is required field

Ensure that 'Required' is selected when creating the field.

but members can select the most 3 activities.

CB Conditionals may be able to make that work; apart from that I don't think it's possible to limit the number of entries from one field. You could, however, create three different 'Activity Fields' (activity_1, activity_2, activity_3) each containing the activity entries and that should solve your problem.

And every activity has degree from 1 to 5. How can i do ?

I think this is what you're looking for, if I understand correctly-

For example:
Components > Community Builder > Field Management: New Field

New Field 1 (Activity)
Dropdown Select Field -- or a radio button, whichever meets your needs.
- Name this field 'activity_1'
- Ensure that the 'Required' button is selected'

At the bottom of the form, add your values such as:
'Football' <add a value>
'Baseball' <add a value>
'Tennis' <add a value>

Save your work and add another field.

New Field 2 (Degree)
Dropdown Select Field--or a radio button, whichever meets your needs.
- Name this field 'degree_1'
- Ensure that the 'Required' button is selected'

At the bottom of the form, add your values such as:
'1' <add a value>
'2' <add a value>
'3' <add a value>
'4' <add a value>
'5' <add a value>
Save and repeat this process for the remaining fields you require.

During registration (or profile edit), your user would then select an 'Activity' (e.g.: Football) and the degree of expertise (e.g.: 1-5).
Then they would have selected their next activity (e.g.: Tennis) as well as their level of ability.

Good luck-

bk
---
J1.7.3 / CB 1.7.1 / PHP 5.2.17 (no, not upgrading yet)
Current J/CB Project

'Terse'
Guide to getting answers
Please note that pm's related to CB issues will go unanswered. That's what the forums are for.
Attachments:
The following user(s) said Thank You: BlackBoy

Please Log in to join the conversation.

12 years 1 month ago #195158 by BlackBoy
Replied by BlackBoy on topic Re: List Field Type
bk6366 thanks your answers.

I cant three different field for activties because during searching it can be problem. How search ?

Every activity has degree. Yes u understand. But i want Football - 2 , tenis - 3 , Baseball - 2 , forexample. they must be relational.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.207 seconds

Facebook Twitter LinkedIn