I'm trying to create a conditional insert value.
I have a form with a select field with 2x values "Parent" and "Child". When you select Child another select field pops up with all the values for 'Parent' records and you need to select a parent. When this value is inserted into the DB the value should contain either Parent or the value from the child select.
The below is my attempt of the string used to insert the values into the DB. select8 being the Parent/Child and select17 all the Parent values.
{{select8.value != 'Child'}} {{select8.value = 'Child'|| select17.value}}