Problems with buttons "Save" and "Save & Close"

LeonL 16 Apr, 2012
In the tab "General", when, I add a "Form tag attachment" and I click on "Save" or "Save & Close", the field is reinitialize to null. It's the same for the "Auto Detect Settings". The value is reinitialize to "Yes".
And it's the same too for all the tab "JS Validation".

Have you a idea ?
Thanks
GreyHead 16 Apr, 2012
Hi LeonL,

Which version of ChronoForms v4 so you have installed? There was a problem like this on one of he early releases of CFv4 but the current RC3.3 seems to be saving correctly for me.

Bob
LeonL 16 Apr, 2012
Hi Bob,
I'm with the version 3.3 of 06.04.12 and joomla 2.5.4.

Thanks
GreyHead 16 Apr, 2012
Hi LeonL,

I have the same versiosn :-(

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
LeonL 16 Apr, 2012
Hi Bob,
Here is the file.
Thanks
Leon
GreyHead 16 Apr, 2012
Hi LeonL,

No problems here :-( Maybe try a different browser??

Bob
chuckers82 09 Aug, 2012
for the "Form Tag Attachment" field you need to take out the quote marks ie target=_blank instead of target="_blank"
GreyHead 09 Aug, 2012
Hi chuckers82,

Or better use single quotes target='_blank'

Bob
ralfeez 28 Aug, 2012
No I am seeing the same issue as the OP. I just downloaded the newest version without success. The only thing that worked for me is to remove all quotation marks. Unlike, the example given on the admin side, the quotation marks do not work.
thank you,
Ralph
ralfeez 28 Aug, 2012
One more thing, I just did another form and needed to add single quotes. It worked! When adding a Form Tag Attachment, I needed to have onsubmit="return jsScript()". Instead, what finally worked was, onsubmit='return jsScript()'. Just a note for others having issues.
Good luck,
Ralph
GreyHead 29 Aug, 2012
Hi ralfeez,

As you found, double quotes won't work there.

In general it's better to avoid adding JavaScript events in this way. Instead use load JS action and add the script and event listeners there.

Bob
ralfeez 29 Aug, 2012
Bob,
Maybe the example that is given under the field should be modified. Also, could you give an example of how to use the load JS action to do this same function?
thank you,
Ralph
GreyHead 29 Aug, 2012
Hi Ralph,

I agree that the help notes could be improved (here and in other places) but I have no influence over them

Please post the content of jsScript() and I'll take a look at what it does.

Bob
ralfeez 29 Aug, 2012
Bob,
That is a fake name and script just for the example. I just want to return a true/false that tells the form whether or not to submit. I have actually solved this issue as I mentioned above, but if there is another way then I would love to hear it.
thank you,
Ralph
GreyHead 30 Aug, 2012
Hi Ralph,

It varies a bit which is why I asked. But this is typical, in a Load JS action . . .
window.addEvent('domready', function() {
  $('form_id').addEvent('submit', function() {
    // add script here
  });
  // and /or
  $('element_id').addEvent('event', function() {
    // add script here
  });
  // and /or
  $('element_id').addEvent('event', xxx });
});
function xxx() {
  // add script here
}

This style of attaching event listeners from the script is generally easier to work with and neater that embedding script snippets into the HTML.

Bob
This topic is locked and no more replies can be posted.