I have a problem with parsing something like this:
{form_settings['settings']['title']: "Titulek", form_settings['settings']['description']: "Popisek formuláře...", form_settings['settings']['gdpr']: "ip", form_settings['settings']['acquisition']: "n", form_settings['settings']['style_form']: "without_border", …}
I want something like in the PHP, where you can call this
$form_settings['settings']['title']
But you can't do it in javascript and i want to use similiar array like in the php I want to do something like that
form_settings['settings']['title']
Because it doesn't work, do you know how to parse it? Thanks for the answers!
//EDIT
<div class="col-md-10 col-form-label">
<input type="text" id="title-for-receiver" class="form-control" name="form_settings['email']['{$input_form['EMAIL']['title_for_receiver']->name}']" value={$input_form['EMAIL']['title_for_receiver']->value} />
</div>
And I got these values through javascript
function getFormData(form){
var unindexed_array = form.serializeArray();
var indexed_array = {};
$.map(unindexed_array, function(n, i){
indexed_array[n['name']] = n['value'];
});
return indexed_array;
}
form_settings['settings']['title']in JavaScript you'll get only the title string. (I had to look up "titulek".)