Could I use Script() in Rules?

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [ x ] Documentation issue or request

Current behavior

I want to create new content by using the data from an event. I use Script() to get the data.
Please have a look at my screenshot below


In the end, I get this error.

Expected behavior

Do I use the correct syntax? Is it possible to use Script() in my case?

Minimal reproduction of the problem

Environment

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ x ] Cloud version

Version: [VERSION]

Browser:

  • [ x ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

YOu cannot combine it. You can either use a a script for the whole field or liquid or the simple interpolations.

1 Like