Forums

radio buttons wierd

daffy 12 Mar, 2009
Having put together a form which uses 3 lots of 3 radio buttons I found they were not 'grouped' as I expected.
I would expect one 'radio button' put onto the form (which places three buttons!!) to give this a group name.
(or this could be provided in the parameters setup).
the grouping is by 'name=set1' etc.
Just using the wizard gave the first set 'group0' which one might expect. The second set group6 and the third set group6.

Of course I can re-arrange it to make it correct using the straight html edit facility, but because this does not reflect into the wizard version I cannot thereafter use the wizard. [This is a pity...should not be difficult to make work].

I can attach the html code generated and a screen-shot of the form if it helps.
--
Dave
Max_admin 12 Mar, 2009
Hi Dave,

yes please show me the generated code and a screenshot, the wizard will give the first set radio0 and the 2nd radio3, the number after the word "radio" is the count of the radio elements in the form, so if your first radio group was of 5 radio boxes then the next created group will have radio6, also check if this issue happens in the first creation or while editing later ?

Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
daffy 12 Mar, 2009
Ok Max. I am a novice at all of this including use of forums .
So I assume I just use the attach button at the bottom.

i have copied the html into notepad so it has added .txt but ignore that of course.
I hope this works.
Max_admin 13 Mar, 2009
great, I found the bug and its fixed in the RC3😉

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
daffy 13 Mar, 2009
Ok but I am finding more problems. Perhaps the wizard is not quite safe yet !
I have a 'hiredates' form where the user has to select two dates and give his email address.
This I construct usng the wizard and it all looks good. I connect it to a table and it works fine.
Then I notice a capital letter in one of the labels which should not be capital so I go back into the wizard and alter that and save. I also take th opportunity to set the validation to 'required' on each element.

The form now looks right but the two Date-Picks no longer work !! They have lost their little calendar and operate like text boxes.

So I presume the safe thing is to construct using the wizard...but to make any changes in the HTML code of the form.
--
Dave
daffy 13 Mar, 2009
Sorry My fault BUT:
I was altering the 'field name' in the setup of the datepick items.
It was coming up as date_4 and date_8 or whatever and I was altering it to suit the field in the database which was 'Firstday' and 'Lastday'. Clearly this upset the internal arrangements of the calendar etc.

So I should not have done it (I have got up to making 'hiredates6' before I discovered the problem.

Perhaps the 'fieldname' in the setup should be 'readonly' to stop this happening.
--
Dave
GreyHead 13 Mar, 2009
Hi Dave,

You can change the names as much as you like - but it does have to be done consistently all the way through.

The *best* way is to set them in the Wizard when you build the form.

Bob
daffy 13 Mar, 2009
Hi Bob,
I don't think this is the case with these datepickers. Just changing the field name at the bottom kills it even if you do it while first in the wizard and I have assumed that some aspect of the little javascript? calendar is hooked onto the name automatically assigned at creation. Perhaps if you change names in the html and change both the element name and its id that might be ok but the wizard only changes the field name. (see attached html, first bit from the wizard initially, second bit after going in and changing the field name.....name changed but id not changed. picker does not work)

i would dearly like to use javascript to validate that the second date is not earlier than the first and that the first date is not before today...but I dont know where to put any javascript even if I was sure how to do it !

Also I ask for two email entries and I would like to validate that these two match...again where to put the validation ?
Max_admin 13 Mar, 2009
Hi daffy,

regarding the problem, a bug "may" be there, the names feature was added just at the last release, can you tell me how did you generate it exactly ? you said it breaks it, breaks what ? the wizard ? the calendar at the wizard ? the calendar at the final form in frontend ?

regarding the validation, I think Bob has posted a full code to do this a week ago or so!😉

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
daffy 13 Mar, 2009
Hi Max,
this is the situation.
I make a form with wizard using date pickers.
I then look at the 'properties' below and set validation = required
I then see that the field name is 'date3' and I prefer 'firstday' so I change it.
SAve.
This no longer works as a date picker. Click on it. and you get some dates, looks like dates entered previously and stored in the database. But the little calendar is gone.
You should see that in my message in response to Bob I attached the form html before and after changing the Field name.

Try it.
--
Thank for looking at it
Dave
GreyHead 13 Mar, 2009
Hi Max & Dave,

This is the "id - name" problem again. The JavaScript that adds the Calendars picks up the 'name' from the form params but then applies it as though it was an 'id'. If the two are the same there is no problem, if they are different then the script fails to add the calendar.

@Dave, if you change the id of your inputs in the Form HTM to match the names the calendars will re-appear I think.

Bob
Max_admin 13 Mar, 2009
Thanks Bob & Dave, fix is ready in RC3🙂

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Franklin 10 Apr, 2009
In one of my forms, I used a set of two radiobuttons. Unfortunately, every word in the two lines begins with a capital. Does anyone know how to fix this?

For example:

Do you understand what I mean with this post?
0 Yes, I Totally Do, Those Capitals Really Stand Out
0 No, Not Really Buddy
GreyHead 10 Apr, 2009
Hi Franklin,

Yes, I'm not quite sure why the Wizard does that sometimess. Open the From HTML and edit them back again.

Bob
Franklin 10 Apr, 2009
Dear Bob,
Thanks again for the quick reply. I opened the form again in the Form Wizard and edited the radio buttons in the HTML-editor. Apparantly there's no way of saving the changes in the HTML-editor. Any experiences with this?
GreyHead 10 Apr, 2009
Hi Franklin,

Click the Form Code tab and open the Form HTML box there. You can edit as much as you like then save the form.

Note: these changes will not be kept if you later edit the form with the Form Wizard.

Bob
Franklin 10 Apr, 2009
Dear Bob,

I just tried in and it works like a dream - great! I just added a review of CF on extensions.joomla.org. Cheers for all your help...
This topic is locked and no more replies can be posted.