Title: Problem with the refill function.
Last modified: March 7, 2023

---

# Problem with the refill function.

 *  Resolved [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/problem-with-the-refill-function/)
 * Hello,
 * Currently I am having issues with CF7 where text inputs are being reset to original
   values.
 * One of the plugins that I maintain is a spamfilter plugin that also supports 
   CF7 forms. Recently I changed the input elements from hidden to text, but now
   CF7 resets the values to the original values. This causes to not validate with
   the spamfilter.
 * The filter uses 2 input fields with the same numeric value. In JavaScript these
   are then changed. The check in the spamfilter is to see if these values have 
   changed, if so, JavaScript has been executed, and it is regarded to be human 
   input, not a bot submission. The plugin is here: [https://wordpress.org/plugins/la-sentinelle-antispam/](https://wordpress.org/plugins/la-sentinelle-antispam/)
 * On the page at [https://svpegasus.nl/contact/contact-met-secretaris/](https://svpegasus.nl/contact/contact-met-secretaris/)
   You can see the 2 form fields displayed. 2 seconds (for debugging purposes) after
   loading the page they will be changed. Sometimes afterwards, on reloading the
   page, and I think always after sending, the values are set back to the original
   values by the refill GET request. This makes it not validate according to the
   spamfilter.
 * Is there an easy way to have this refill function ignore fields that are not 
   supposed to be refilled to original values? Do you have another idea to fix this
   issue? Or is it still better to go back to hidden input fields, and then CF7 
   refill won’t touch them?
 * Regards, Marcel Pol
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-the-refill-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/problem-with-the-refill-function/#post-16538536)
 * The reset and refill run because the page is cached. Try deactivating the cache
   plugin.

Viewing 1 replies (of 1 total)

The topic ‘Problem with the refill function.’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/problem-with-the-refill-function/#post-16538536)
 * Status: resolved