Conditional fields and values

18 years 4 months ago #1881 by mikko
Replied by mikko on topic Re:Conditional fields and values
Seems to work, at least with latest firefox. I will post the plugin shortly.

Please Log in to join the conversation.

18 years 4 months ago #1960 by mikko
Replied by mikko on topic Re:Conditional fields and values
There is a demo online: www.prodeko.org/~mronkko/joomla

See details in my latest blog entry. Please also post feedback there.

List Tab and Extended Select plugins should work fine with mozilla and firefox. Conditions has a few bugs still.

mikko

Please Log in to join the conversation.

18 years 4 months ago #2058 by mikko
Replied by mikko on topic Re:Conditional fields and values
Now it all works with IE and FF.

for testing, please use username test and password test12

mikko

Please Log in to join the conversation.

18 years 4 months ago #2266 by crash777
Replied by crash777 on topic Re:Conditional fields and values
mikko wrote:

Now it all works with IE and FF.

for testing, please use username test and password test12

mikko


Tried logging in but not sure what I am looking for... (or how to implement "conditions" in the admin end)...
:S

Please Log in to join the conversation.

18 years 3 months ago #2384 by mikko
Replied by mikko on topic Re:Conditional fields and values
I just updated the readme. Here are the instructions:

Configuring a condition

This plugin does not have an administrative userinterface, but is configured by inserting things into Joomla database. This is by design, but it might change in the future.

How to make field/option conditional:

1) Create a condition to #__comprofiler_conditions

Go to the database and insert a new row to #__comprofiler_conditions. The field column contains the name of the CB field that is monitored for the condition (the name always starts with 'cb_'). The value column contains the case sensitive value that the fields has to have to make this condition true. The id-column is filled in automatically. Insert the row and write down the id.

2) Edit conditionid column in the field or option table

Got to table #__comprofiler_fields or #__comprofiler_field_values and modify the conditionid column. Change this column to the previously written down id for all those fields and options that you wish to become visible when the previously defined condition is true. Note that you can define only one condition for one row and that row (field or option) is visible only when the condition is true.


To get the conditions working you _must_ publish the tab that the plugin created. The tab must be _after_ all the fields that have conditions attached.

mikko

Please Log in to join the conversation.

18 years 3 months ago #3551 by gaz36f
Replied by gaz36f on topic Re:Conditional fields and values
Firstly, thanks for this plugin. It is just what I need.

However, I am having problems getting it to work.

1. I have installed the plugin and published....success!

2. I have created a field called cb_testing in the conditions tab

3. I have created two values in this cb_testing field; '1' and '2'

4. I have gone into my SQL database and in the jos_compiler_conditions and inserted a row with the following:

field: cb_testing
value: 1
Id: 1 (this autoincremented by default as you rightly indicated)

5. I have gone into compiler_field and under a new field entitled cb_testingcond I have changed the conditionid from NULL to 1

Is this right?

For some reason, the cb_testingcond always shows regardless of the value in cb_testing

Thanks and best wishes,

Gary

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.560 seconds

Facebook Twitter LinkedIn