Answers.Body: <p>I think you're looking for the &quot;Other: Set Value&quot; action.  Add the condition on this field, and use that action's output to populate the custom field.</p>
  <p>Form Processor works on objects, not strings, so it wouldn't work to have a string that isn't generated by another action or input.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-19T10:18:09.083Z
Answers.LastActivityDate: 2021-03-19T10:18:09.083Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I want to change a small thing in the graphical user interface which allows to change a form processor (/civicrm/admin/automation/formprocessor/...).
  Specifically, I want to change the form that appears when I create or edit an Action.</p>
  <p>I want to add a field where users are able to write a default string. This string should be written inside a CiviCRM custom field, if there is no other value. So, this field should work similarly to the <code>Default Subject</code> field in the <code>Configuration</code> section.</p>
  <p>The reason for this: I have an Input field of type <code>Option Group</code> that hands an array of products to the Actions. For each available product, I want to create an Action testing if the input array contains this product. If yes, a new Activity should be created, with the custom field <code>product type</code> filled with a default string (name of product).</p>
  <p>Right now, this custom field is already part of the <code>Create Action</code> form, but it has a dropdown menue allowing me to auto-fill the field. But I don't want to choose anything from the dropdown menue (like Input fields, for example). Instead I want to be able to write some default string there.</p>
  <p>I didn't find any similar question/thread, and poking around in the code at <code>/public/sites/default/files/civicrm/ext/form-processor/</code> doesn't seem to bring me further.</p>
  <p>Also, I cannot use the <code>Retrieval of defaults</code> tab, because I do not want any Input field filled by default. The default value will only come into the game if the Condition of one Activity (that is, <code>Array contains...</code>) is fulfilled.</p>
  <p>Where is this form created? Where can I change the field type of specific (custom) fields?</p>
  <p>Any hint is appreciated :)</p>
  <p><strong>Edit</strong>: It would also solve the problem to have an array-type input field, and an <code>Explode List</code> Action that actually takes an array, and properly and accessibly outputs all of its values (e.g. via indices). I don't really understand why Formprocessor Extension has all different types of option groups, but no <em>simple</em> array, and none that actually works with <code>Explode List</code>.</p>
  
Tags: <forms><form-processor>
Title: How do I change the Form Processor "Edit Action" Form?
ThreadText: # How do I change the Form Processor "Edit Action" Form?
  
  (Asked by: username_0 on 2021-03-15)
  
  I want to change a small thing in the graphical user interface which allows to change a form processor (/civicrm/admin/automation/formprocessor/...).
  Specifically, I want to change the form that appears when I create or edit an Action.
  
  I want to add a field where users are able to write a default string. This string should be written inside a CiviCRM custom field, if there is no other value. So, this field should work similarly to the `Default Subject` field in the `Configuration` section.
  
  The reason for this: I have an Input field of type `Option Group` that hands an array of products to the Actions. For each available product, I want to create an Action testing if the input array contains this product. If yes, a new Activity should be created, with the custom field `product type` filled with a default string (name of product).
  
  Right now, this custom field is already part of the `Create Action` form, but it has a dropdown menue allowing me to auto-fill the field. But I don't want to choose anything from the dropdown menue (like Input fields, for example). Instead I want to be able to write some default string there.
  
  I didn't find any similar question/thread, and poking around in the code at `/public/sites/default/files/civicrm/ext/form-processor/` doesn't seem to bring me further.
  
  Also, I cannot use the `Retrieval of defaults` tab, because I do not want any Input field filled by default. The default value will only come into the game if the Condition of one Activity (that is, `Array contains...`) is fulfilled.
  
  Where is this form created? Where can I change the field type of specific (custom) fields?
  
  Any hint is appreciated :)
  
  **Edit**: It would also solve the problem to have an array-type input field, and an `Explode List` Action that actually takes an array, and properly and accessibly outputs all of its values (e.g. via indices). I don't really understand why Formprocessor Extension has all different types of option groups, but no *simple* array, and none that actually works with `Explode List`.
  
  **Tags:** forms, form-processor
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-03-19. Score: 1
  
  I think you're looking for the "Other: Set Value" action. Add the condition on this field, and use that action's output to populate the custom field.
  
  Form Processor works on objects, not strings, so it wouldn't work to have a string that isn't generated by another action or input.
  
  
  ---
  
  