I’m adding custom fields to my action form( through CLI).
here is the Working code.
const custom_fields_arr = (z, bundle) => {
var email=encodeURIComponent(bundle.authData.email);
const response = z.request('https://myURL/custom_fields/'+email);
// json is [{"custom_fields[5]":"field_name"},{"custom_field[14]":"field_name"}]
//here custom_field[5],custom_field[14] =>5,14 is the custom_field id from database
return response.then(res => res.json);
};
and i’m able to generate custom field successfully.

but the problem is when i tried to pass this value(along with forms other value) i’m not able to get bundle.inputData.custom_field because of ‘[]’ parentheses, how can i post this data.
Best answer by Zane
View original