Questions tagged [formit]

FormIt is an extra (snippet) for MODx Revolution CMS. It is used to handle forms after submission. FormIt provides the following functionality: form validation, basic spam protection, reCaptcha, email sending etc. Questions related to form processing using FormIt extra in MODx Revolution might have this tag.

FormIt was written by Shaun McCormick as a form processing Extra, and first released on October 19th, 2009. It is currently maintained by the team at Sterc.

All the information about this extra can be found here: https://docs.modx.com/extras/revo/formit

47 questions
2
votes
3 answers

How do I get FormIt with ModX Revolution to redirect to a web page id (ie. www.myurl.com/index.php#contact)?

Okay, so the issue is that I created a one page html website with multiple sections that represent all the pages. The problem that I am having is that the FormIt contact form works, but I can't get it to redirect to the right id. So, once I submit…
Mike
  • 1,590
  • 8
  • 27
  • 41
2
votes
2 answers

My FormIt hook gets cached and it's screwing up every run after the 1st

I have the following snippet code hooked up to a FormIt email form: $tv = "taken" . (int)$hook->getValue('datetime'); $docID = $modx->resource->get('id'); //get the page id $page = $modx->getObject('modResource', $docID); $current =…
kotekzot
  • 1,518
  • 1
  • 14
  • 23
1
vote
1 answer

Can I use placeholders inside MODX Revolution FormIt parameters?

I try to learn MODX FormIt component usage (MODX revolution v.2.7.0, FormIt v. 4.1.1). Now I try to set validation rules for form field, such as "required, only numbers, greater than", meanwhile I want to use placeholder for minimal value. I call…
VlLight
  • 53
  • 4
1
vote
0 answers

Modx: FormIT Select fields not persistent when values are loaded from MySQL table

I know that the formItIsSelected utility works perfectly well to keep the value of a Select field in a form when (for example) the form fails to validate for some reason. But has anybody tried to use this when a Select field populates from a table…
1
vote
1 answer

MODX: I cannot send files using FormIt

I am trying to send a file from my form, but I receive only the name of the file. According to this article it seems that I have done the things properly, but in the end I get only the file's name.
1
vote
1 answer

MODX Formit dynamic mail address in the hook "emailTo"

I've created a site with 30 providers of workshops. Each provider has its own contact form. I now have a separate template for each provider. The hook "emailto" is, in fact, the only variable in the template. I would like to have one template, and…
LeoWolff
  • 29
  • 1
1
vote
1 answer

Trouble with email sending in ModX Revolution via FormIt

There is a trouble with email sending in Modx Revolution. Using FormIt plugin, I tried to enable Gmail SMTP at Modx settings list, but the same result. Now SMTP is disabled. Using this FormIt call: [[!FormIt? &hooks=`email,redirect` …
Dmitry
  • 13
  • 3
1
vote
1 answer

Modx FormIt, got 2 forms, formit send both

This is my code, I can't understand why formit sends both the forms. It means I have 2 messages instead of one. I use two templates and different &prefix: [[!FormIt? &hooks=`spam,email,emailUser` &emailTo=`sitename@gmail.com` …
Son Pavel
  • 11
  • 2
0
votes
1 answer

Modx revolution godaddy email settings

I'm new to modx and I've read numerous articles regarding godaddy free email and modx smtp settings. Could someone please provide me with the proper smtp settings to get godaddy email working? I'd like to say I'm using formit. What I've…
Code Junkie
  • 7,602
  • 26
  • 79
  • 141
0
votes
1 answer

ModX Revolution FormIt pass url variable to form

I am using FormIt extra in Modx Revolution and I have an url like .../page.html?data1=value1&data2=value2 I want to pass these values into new form on the page. How do I do that without using JS? THX
Kudykam
  • 49
  • 8
0
votes
1 answer

Formit, passing values in a preHook

Is it possible to pass values from a link to a form? I have a page with four different links and they all supposed to redirect to a form. Each on of them should have a different value and based on that show a different(in content) dropdown.? any…
0
votes
2 answers

How do I set redirectParams from a hook in FormIt, MODx revo?

How do I set redirectParams from a hook in FormIt, MODx revo? I need it in order to redirect the user to the view page after the edit with the correct ID of what was edited. The problem is: if ID wasn't known before the hook (as is the case when…
Alexei Averchenko
  • 1,706
  • 1
  • 16
  • 29
0
votes
2 answers

Modx can't send message with FormIt

I try to send a message from my contact form, but I don't receive any message. I use QuickEmail to test it, and I receive a message on my mailtrap account. I guess the problem is from the contact form (right now I am local). //Chunk [[!FormIt? …
Beusebiu
  • 1,433
  • 4
  • 23
  • 68
0
votes
1 answer

Redirected after submit form Formit Modx

I got redirected after I submit the form, and I want to remain on the same page. I am not sure why I got redirected, I am not using &redirectTo for this. I try some things but nothing worked till now. [[!FormIt? …
Beusebiu
  • 1,433
  • 4
  • 23
  • 68
0
votes
1 answer

Modx Formit simple contact from

I try to create a simple contact form, but I didn't get any message, the post request is made. I am pretty new with Modx. What I tried: Link 1 Link 2 I created 2 Chunks (emailChunkTpl and MyEmailChunk), and in my template I call for the…
Beusebiu
  • 1,433
  • 4
  • 23
  • 68
1
2 3 4