Snippets

Syntax for using Snippets in an RSForms Pro hidden field

5 months 2 weeks ago #93791

Maurice Molenaar's Avatar Maurice Molenaar

Hi!

We use Snippets with RSForms Pro. Easy peasy to place a snippet inside form properties (like title) or a form field, just using the Snippet code, and get the Snippet values with the form result.

However, when I place Snippet code in a hidden field (to populate the Snippet value in the form result), the Snippet code shows, not the value.
I must be missing something here. Can you help me get the Snippet value to pass to the form result?

Thanks!
Maurice

5 months 2 weeks ago #93798

Peter van Westen's Avatar Peter van Westen Admin

Snippets code is protected inside form elements.
This is because when you for instance edit an article with snippet tags, you don't want them being replaced.

Also, Snippets is aimed at inserting html content. It isn't really designed for simple values.

You might want to consider using ReReplacer instead.
You can enter any syntax you want - and either fixed code or with dynamic values - inside your form fields and let ReReplacer search for it and replace it with whatever you want.

5 months 2 weeks ago #93799

Maurice Molenaar's Avatar Maurice Molenaar

Ok thanks Peter.

I will try ReReplacer then.