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:
$inputCookie = JFactory::getApplication()->input->cookie;
$bdayd = $inputCookie->get('rsformdatabdayd', '');
You have posted snippets that are using two separate means of updating the form.
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
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 ...
For one, you are declaring:
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');
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.
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.