11 years ago
7
Topic

Hello,

First, thanks for this amazing tool and for the brand new version !

It seems that conditional states don't work with Seblod V3, neither on search nor on content types. After facing all day long this problem, thinking that I was doing something wrong, I reinstalled my old V2.3 version and it works perfectly.

Is this a known issue ?

Get a Book for SEBLOD
11 years ago
2
Level 1

Hi flovertaco,

We use conditional states on several projects/websites, and it works just fine.

I'd guess that you may have a jquery conflict / some javascript issues on the page.. You should have a look with firebug..

Regards,

Saba.

11 years ago
0
Level 2

Hi Saba,

Thank you for your quick answer.

I've done some test and the weird thing is that I have a conditional state working on my Seblod v2.3.9 website, the only thing I do is upgrading to 3.0.3 and the conditional state doesn't work anymore (whereas it's still here in my search type) :-/

I've tried different conditions on different fields and always the same observation. I will check that with Firebug, even if I'm not an expert in JS, and at worst continue working with v2.3 ..

215 Posts
cubist
11 years ago
0
Level 2

Flovertaco, you got further than I did. I also set a post: http://www.seblod.com/v3/community/forums/fields-plug-ins/conditional-field with the same issue. Saba may be working with a RC newer than V3.1.11. I have tried condition in every browser with a clean install of J2.5.11 and Seblod3.1.11 and can not get it to work.

Does anyone know if there's a way to confirm that the JS for Conditional states is properly loading and executing?

When I review the HTML rendered in FireBug I don't see any JS related to ConditionalStates as Flovertaco mentions.

The Seblod general options confirms Validation is set to Both. Just for shytes and giggles, I can confirm all CCK plugins are set to enabled. hmmm...

What else Community? Anyone else care to chime-in on this? ...

11 years ago
3
Level 1

Me again.

It's indeed a js conflict .. Firebug tells me that $("#cck10r_myfield").conditionalStates is not a function.

Same problem with colorbox and validationEngine functions.

How can I solve that ??

Thanks in advance for your help :)

11 years ago
2
Level 2

FYI, I noticed this difference between the scripts generated by the old and the new version :

V2.3 :

$j(document).ready(function(){$j("#cck2r_myfield").conditionalState... (note the "j" after the "$")

V3.0 :

$(document).ready(function(){$("#cck1r_myfield").conditionalStates...

11 years ago
1
Level 3

Hi,

Does someone know how I could modify the js script above to name the variable $j, so that the noConflict function works (like in 2.3 version) ?

215 Posts
iliil
10 years ago
0
Level 4
Hello
I've had the same problem. Please view the page source and check which extensions include jquery or jquery-noconflict.js etc. If you have multiple versions - try to optimize. My problem was in a conflict of seblod's jquery and jquery provided by the template I use.
Cheers
Get a VIP membership