ansible/awx

Add option to textarea survey input to automatically convert to list

Open

#13554 opened on Feb 10, 2023

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (13,071 stars) (3,333 forks)batch import
communitycomponent:uihelp wantedtype:enhancement

Description

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.

Feature type

New Feature

Feature Summary

A common use case with textarea is free form list input. This requires the extra step of calling .splitlines() or .split('/n') on the resulting variable in the playbook which is easy enough but extra steps. There should be a check box when configuring the survey question to automatically split the lines into a list potentially also to trim the lines.

Select the relevant components

  • UI
  • API
  • Docs
  • Collection
  • CLI
  • Other

Steps to reproduce

Provide multiple lines of text to a textarea question in a survey.

Current results

Currently there is no configuration options and if the input is being utilized as a list extra steps are required to split the values within the playbook.

Sugested feature result

Two configuration check boxes when adding a textarea question to a survey.

  1. Convert to List. This sets the variable to be a list of the split lines not a string with new line characters.
  2. Trim lines. Remove whitespace around lines.

Additional information

No response

Contributor guide