Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the topic directly from a field #25

Open
jchirschy opened this issue Sep 3, 2014 · 3 comments
Open

Set the topic directly from a field #25

jchirschy opened this issue Sep 3, 2014 · 3 comments

Comments

@jchirschy
Copy link

It would be fine to set the topic directly from a field in the form. For example, from a select option.

jchirschy added a commit to jchirschy/FormSave that referenced this issue Sep 3, 2014
@AlastairFallon
Copy link

Has this fix been tested? It would be great if it could do this. I have edited the 'snippet.formsave.php' file with the changed code and then added &fsFormTopic=[[+category]] (a select field) as it is for the FormIt email hook (made the changes as neccesary to the select options) but to no avail. Is there another file I need to change?

@jchirschy
Copy link
Author

Hi AlastairFallon,

Have you edited the snippet from the manager or directly the file in the core/components directory ? By default, the snippet is not static and is saved in the Modx database. In your example, you missed the back ticks. It must be &fsFormTopic=[[+category]], but I suppose it is not the problem, you're facing.
This fix has been tested and works fine for me.

@AlastairFallon
Copy link

jchirschy thanks for the quick reply. I edited the file in the core components directory, hence the reason it wouldn't work. I have changed it in the database as per your message and it now works fine. Thanks. Nice update, very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants