Code.eval_something

Great, thanks. I missed the second input parameter in my own tests. The code that is evaluated is edited in a formbuilder. For single field validations I’m using javascript for the more complex validations. These are executed on the client, after submit they are executed on the server via GitHub - devinus/execjs: Run JavaScript code from Elixir also. F.e. (visible URL not reachable via internet btw):

For validations of combinations of fields I’m using a textfield component (should become a special component later) wherein you can edit elixircode:


These are executed on the server only of course, after submit of the form.
Would you advise against the practise after this explanation?

1 Like