getEditorConfig(); $form = [ 'name' => "New Form", 'fields' => "[]", 'finishers' => "[]", ]; if(isset($_GET['id'])) $form = $formsRepository->findWithId($_GET['id']); $isEditing = isset($form['id']) && $form['id'] > 0; $fieldsJson = json_encode(json_decode($form['fields']) ?? [], JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT); $finishersJson = json_encode(json_decode($form['finishers']) ?? [], JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT); $fieldsJson = $fieldsJson === false ? '[]' : $fieldsJson; $finishersJson = $finishersJson === false ? '[]' : $finishersJson; ?>

Form builder

'; ?>

Basics

Give the form a name that will be easy to identify later.

A unique name for your form.

Form fields

Define the fields people can fill out. Drag a field to change its order.

No fields added yet

Actions

Choose what should happen when someone submits this form.

No actions added yet

Cancel