# New Properties and templater prompts and commands?

**URL:** <https://forum.obsidian.md/t/new-properties-and-templater-prompts-and-commands/66425>\
**Category:** Help\
**Created:** [September 3, 2023, 6:47am UTC](https://forum.obsidian.md/t/new-properties-and-templater-prompts-and-commands/66425 "2023-09-03T06:47:25Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![SiliasOS](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@SiliasOS](https://forum.obsidian.md/u/SiliasOS)\
**Post date:** [January 9, 2024, 8:21am UTC](https://forum.obsidian.md/t/new-properties-and-templater-prompts-and-commands/66425/27 "2024-01-09T08:21:48Z")

</div>

Hi gino\_m,

wow thanks!!! 🙂

Using ChatGPT, I understood that if have to use that snippet of your code:

```auto
<%*
// Check if the 'Englishtexttranslated' tag exists before adding it
setTimeout(() => {
  app.fileManager.processFrontMatter(tp.config.target_file, frontmatter => {
    if (!frontmatter['tags'] || !frontmatter['tags'].includes('Englishtexttranslated')) {
      const tagsArray = Array.isArray(frontmatter['tags']) ? frontmatter['tags'] : [];
      if (!tagsArray.includes('Englishtexttranslated')) {
        tagsArray.push('Englishtexttranslated');
        frontmatter['tags'] = tagsArray;
      }
    }
  });
}, 350); // Timeout to allow preceding clipboard operations to complete
_%>

```

and change “tags” to any key I want and change “Englishtexttranslated” to any value I want to add.

If I want to have more properties added, I have to copy that part of the snippet:

```auto
	if (!frontmatter['tags'] || !frontmatter['tags'].includes('Englishtexttranslated')) {
	  const tagsArray = Array.isArray(frontmatter['tags']) ? frontmatter['tags'] : [];
	  if (!tagsArray.includes('Englishtexttranslated')) {
		tagsArray.push('Englishtexttranslated');
		frontmatter['tags'] = tagsArray;
	  }
	}

```

Thanks a lot gino! 🙂

---

_[View the full topic](https://forum.obsidian.md/t/new-properties-and-templater-prompts-and-commands/66425)._
