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

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 ...


1

RSForms has pretty good documentation. It sounds like you want conditional form fields. I would suggest having the first field be a select box with choices like User 1 User 2 User 3 Then you can setup conditional fields to show the subsequent fields only when your select field = User 1 or whatnot. Note that these other fields should not have a field ...


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.


0

Disabling Widgetkit seems to have solved the issue....


0

I managed to solve this by amending the second column in the SELECT clause to generate a minuscule, non-zero decimal value. IF(COUNT(FieldValue) > 0, COUNT(FieldValue), 0.1) For the record, GREATEST(COUNT(FieldValue), 0.1) will have virtually the same result set (technically, all of the results become float values) and the graphic output is the same. ...


Top 50 recent answers are included