New answers tagged

0

this is a solution tested and running ok. (PD: The solution seems to be the use (or abuse) of the @ to avoid the warnings, and I am not sure if this can be considered a real solution or not) Script called on form display: //COOKIES $inputCookie = JFactory::getApplication()->input->cookie; $bdayd = $inputCookie->get('rsformdatabdayd', ''); $bdaym =...


0

There is actually a custom button plugin provided by the creators of JCE... https://github.com/widgetfactory/jce-custom


0

You have posted snippets that are using two separate means of updating the form. The javascript-leveraging snippet is updating the form AFTER the form elements have already been generated. This means that the standard form for all users is adjusted at the last moment to apply the cookie values to the fields for that specific user -- seems like the right ...


0

For one, you are declaring: $inputCookie->set('rsformdatacountry', $_POST['form']['country']); This means that the rsformdatacountry cookie value is a string (not an array). This is appropriate assuming that your form is not allowing multiple selections. When you call it, use: $activeCountry = $inputCookie->get('rsformdatacountry', '', 'string'); ...


0

The error messages appears to be for fields that you have not provided a value for in your "Script called on form process:" such as adress-level2 so I expect that com_rsforms/helper/field.php is expecting a value in an array, like the other fields you do provide, but you are giving it an empty or no value at all.


Top 50 recent answers are included