it\'s a really simple question. The or operator is not working, i am trying to display a different function for both the title and amount field name. Thank you
$
You either have to restate the condition like
if (field.name === "title" || field.name === "amount")
or you can use an array
if (["title","amount"].indexOf(field.name) > -1)