# Prevent users from posting text into container field

**URL:** https://the.fmsoup.org/t/prevent-users-from-posting-text-into-container-field/2548
**Category:** Questions
**Tags:** container-field
**Created:** [November 3, 2021, 12:19am UTC](https://the.fmsoup.org/t/prevent-users-from-posting-text-into-container-field/2548 "2021-11-03T00:19:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Susurrus](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/susurrus/32/472_2.png) [@Susurrus](https://the.fmsoup.org/u/Susurrus)
#### Post date: [November 3, 2021, 12:19am UTC](https://the.fmsoup.org/t/prevent-users-from-posting-text-into-container-field/2548/1 "2021-11-03T00:19:41Z")

</div>

One of my customer ran into an issue today with Mirror Sync not wanting to sync text in a container field. I am not looking for a way to prevent or at least warn a user against pasting text into a container field.

any suggestions on how to stop this from happening? I am thinking there must be a way to identify if the user is pasting text and not a file? I could check for supported file extensions but I like to support just about anything so not sure that would work well.

---

<div class="post-metadata">

### Author: ![Malcolm](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/malcolm/32/196_2.png) [@Malcolm](https://the.fmsoup.org/u/Malcolm)
#### Post date: [November 3, 2021, 12:34am UTC](https://the.fmsoup.org/t/prevent-users-from-posting-text-into-container-field/2548/2 "2021-11-03T00:34:05Z")

</div>

`GetContainerAttribute ( Enrolments::container ; "Storage Type" ) = "Text"`

---

<div class="post-metadata">

### Author: ![Susurrus](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/susurrus/32/472_2.png) [@Susurrus](https://the.fmsoup.org/u/Susurrus)
#### Post date: [November 3, 2021, 12:48am UTC](https://the.fmsoup.org/t/prevent-users-from-posting-text-into-container-field/2548/3 "2021-11-03T00:48:35Z")

</div>

Is there a way to check before I insert it into the container?

---

<div class="post-metadata">

### Author: ![Malcolm](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/malcolm/32/196_2.png) [@Malcolm](https://the.fmsoup.org/u/Malcolm)
#### Post date: [November 3, 2021, 1:51am UTC](https://the.fmsoup.org/t/prevent-users-from-posting-text-into-container-field/2548/4 "2021-11-03T01:51:26Z")

</div>

You'd need plugin that can inspect the clipboard.

---

<div class="post-metadata">

### Author: ![Susurrus](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/susurrus/32/472_2.png) [@Susurrus](https://the.fmsoup.org/u/Susurrus)
#### Post date: [November 3, 2021, 1:54am UTC](https://the.fmsoup.org/t/prevent-users-from-posting-text-into-container-field/2548/5 "2021-11-03T01:54:24Z")

</div>

Thanks so much for the help.
