Additional question problems

Hi folks, we’ve got a customization where users of the RSVP function are able to add an additional question of their own devising, as well as make it required or not. It doesn’t seem to be working reliably, though. Here’s a video of the thing breaking. Any ideas what we should look into?

Hi Rob,

Sometimes in an old version of that config, the question was defined in the config PHP file with an “anonymous” array, something like

$_LW->CONFIG['RSVP_FIELDS']=[

    'global'=>[
        [
                'header'=>'Color',
                'instruction'=>'Enter your favorite color',
                'is_required'=>true
        ]
    ],

But for awhile (I can’t remember the precise version number, but I feel like it’s been a couple years) that config requires a key (system name) for each rsvp field, so the format should be something more like

$_LW->CONFIG['RSVP_FIELDS']=[

    'global'=>[
        'color' => [
                'header'=>'Color',
                'instruction'=>'Enter your favorite color',
                'is_required'=>true
        ]
    ],

That 'color' => inside of $_LW->CONFIG['RSVP_FIELDS']['global'] is important for the saving process; I’d probably check that config file first to see if that might help? Otherwise, feel free to submit steps to reproduce to the Request Help Form.

Thank you very much!