This article explains the “Search and replace” function in a questionnaire editing tool, which allows users to search for and modify text elements across a project efficiently.

Using Search and Replace

Search and replace is invoked via the menu item in the questionnaire view. The search text is entered in the search form. The search results will include any terms that contain the keyword (e.g. „questionnaire“ when searching for „question“). Optionally, you may also specify the following restrictions or criteria:

  • Page to be searched: This option allows to restriction of the search to a specific questionnaire branch.
  • Survey language: By default, the search is performed in the default language.
  • Search type
    • Normal search: Default setting
    • Case sensitive
  • Text type: You can, for example, restrict your search to scale titles or long variable names.

To trigger the search, click on the Search button.

The “Search and replace” function covers <img> tags used e.g. in the HTML question type to insert images, and references from image question types to
image files. When replacing texts, please ensure that no HTML elements or references to files are changed inadvertently.

Viewing the results

In the results table the results are listed, sorted by page, with the following information:

  • Type: Text type
  • This “Search and Replace” dialog allows you to perform a specific search within a questionnaire branch under a particular page.
  • Content: The text of the respective question, answer option or fill-in instruction. The keyword is highlighted.
  • Replace: see below.
  • Actions:
    • Edit page: This icon allows you to call up and directly edit the respective page in the questionnaire editor.
    • Preview: Opens the respective page in the questionnaire preview.
    • Edit language elements: In multilingual projects, this icon allows you to switch to the relevant page in the Language editor.

Replacing text elements

If you wish to edit text elements centrally, first select the search results for modification in the “Replace” column. Then enter the new text element in the “Replace with” field. Your changes will be performed once you click on the Replace button.

FAQ

Is the search case-sensitive by default?

No, the default search is not case-sensitive. However, you can enable case-sensitive search in the search options.

Can I use Search and Replace in multilingual projects?

Yes, you can search in different language versions of your project by selecting the desired survey language in the search options.

Does Search and Replace affect HTML tags?

The function covers <img> tags and references to image files. Be cautious when replacing text to avoid inadvertently changing HTML elements or file references.

Leave a Reply

Your email address will not be published. Required fields are marked *