# Is there a way to modify native validator functions?

**URL:** <https://discourse.nodered.org/t/is-there-a-way-to-modify-native-validator-functions/78963>\
**Category:** Developing Nodes\
**Tags:** typedinput\
**Created:** [5 June 2023 14:51 UTC](https://discourse.nodered.org/t/is-there-a-way-to-modify-native-validator-functions/78963 "2023-06-05T14:51:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericbenjaminjr](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ericbenjaminjr/32/46795_2.png) [@ericbenjaminjr](https://discourse.nodered.org/u/ericbenjaminjr)\
**Post date:** [5 June 2023 14:51 UTC](https://discourse.nodered.org/t/is-there-a-way-to-modify-native-validator-functions/78963/1 "2023-06-05T14:51:51Z")

</div>

Hi all,

I'm testing the use of mustache template strings in typedInput fields as I've often had the need to set a key based on a topic. But the msg, flow and global types show an error when I use dots between the `{{string}}`.

This works: `[flow.] {{topic}}`  
But this shows an error: `[flow.] key.{{topic}}`.

Is there a way I can hook into the flow, msg and global validator functions? Or somehow modify them without having to clone the whole type?

 ![juncture-mustache](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/1/c17d92be96097c64d16696d781b07d42d00a62a4.jpeg)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [5 June 2023 15:42 UTC](https://discourse.nodered.org/t/is-there-a-way-to-modify-native-validator-functions/78963/2 "2023-06-05T15:42:08Z")

</div>

Have you tried `flow.` `cache[msg.topic]` as this works in change nodes.

---

<div class="post-metadata">

**Author:** ![ericbenjaminjr](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ericbenjaminjr/32/46795_2.png) [@ericbenjaminjr](https://discourse.nodered.org/u/ericbenjaminjr)\
**Post date:** [5 June 2023 16:41 UTC](https://discourse.nodered.org/t/is-there-a-way-to-modify-native-validator-functions/78963/3 "2023-06-05T16:41:01Z")

</div>

I've looked everywhere for this 🤦‍♂️! Thank you so much. It already works in my node. Somewhere, while doing spelling checks, I accidentally changed `normali(s)ePropertyExpression` to `normali(z)ePropertyExpression`. Thats why the bracket method didn't work at all. Now it works!!! I really need to bring more of my self-proclaimed "stupid questions" to this forum.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [5 June 2023 20:19 UTC](https://discourse.nodered.org/t/is-there-a-way-to-modify-native-validator-functions/78963/4 "2023-06-05T20:19:36Z")

</div>

Gotta love the English language!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 June 2023 20:19 UTC](https://discourse.nodered.org/t/is-there-a-way-to-modify-native-validator-functions/78963/5 "2023-06-19T20:19:38Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
