8 years ago
5
Topic

Hi

It seems (not sure) that conditional states on a calendar field in a search form doesn't always work: you can't set 'is filled by' .

it works on an admin/site form though

I have two date fields (date1 and date2) and I want to fill date2 with date1 value when date1 is changing 

It  works well when you create/edit the content but not in the search form 

is it known please ?

I'm on Joomla 3.4.3 + Seblod 3.7

thanks for your comments

cyril

Get a VIP membership
8 years ago
2
Level 1

Hello!

I followed this tutorial and added conditions with javascript. it worked perfect!

http://www.seblod.com/community/forums/fields-plug-ins/month-year-date-select-field#post27630

Cheers,

Elisa

8 years ago
1
Level 2

Hello!

Does it work instantaneously ? I mean as with the conditional states, I need one date field to be updated when another is manually modified, not at the submit time.

thanks

cyril

8 years ago
0
Level 3

Yes, the javascript is working like you want - onclick, onchange,... You can contact me on skype so i can send the link ;-)

37 Posts
PierreP
8 years ago
1
Level 1

Hello,

I discovered yesterday that conditional states doesn't work instantaneously on the search form with simple select, text and checkbox fields.

Maybe a problem with search form ?

8 years ago
0
Level 2

Hi

So it seems there is a general issue with conditional states on search forms :)

I'm a bit puzzled to be forced to use additional JS code to fix the issue. 

thanks

cyril

Get a VIP membership