Title: Required Field Functionality Does Not Work
Last modified: November 16, 2022

---

# Required Field Functionality Does Not Work

 *  Resolved [Jackson Whelan](https://wordpress.org/support/users/madjax/)
 * (@madjax)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/required-field-functionality-does-not-work/)
 * Hello, thanks for the handy plugin!
 * Unfortunately setting the field as required does not work.
 * Your code that generates the field seems to set it as empty every time regardless
   of chosen settings:
 * in function get_field_input:
 * $required_attribute = “”;
 * Possible to get a fix published?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [webteam7](https://wordpress.org/support/users/webteam7/)
 * (@webteam7)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/required-field-functionality-does-not-work/#post-16567862)
 * Yeah, I was facing the same problem. you have to Enable
   allow_url_fopen = On 
   in php.ini
 *  Thread Starter [Jackson Whelan](https://wordpress.org/support/users/madjax/)
 * (@madjax)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/required-field-functionality-does-not-work/#post-16569210)
 * [@webteam7](https://wordpress.org/support/users/webteam7/) I think we have different
   problems. Mine relates to a variable being hard coded as null in the get_field_input
   function. allow_url_fopen has no bearing on this.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Required Field Functionality Does Not Work’ is closed to new replies.

 * ![](https://ps.w.org/gforms-addon-for-country-and-state-selection/assets/icon-
   256x256.png?rev=3333364)
 * [Country and State Selection Addon for Gravity Forms](https://wordpress.org/plugins/gforms-addon-for-country-and-state-selection/)
 * [Support Threads](https://wordpress.org/support/plugin/gforms-addon-for-country-and-state-selection/)
 * [Active Topics](https://wordpress.org/support/plugin/gforms-addon-for-country-and-state-selection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gforms-addon-for-country-and-state-selection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gforms-addon-for-country-and-state-selection/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jackson Whelan](https://wordpress.org/support/users/madjax/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/required-field-functionality-does-not-work/#post-16569210)
 * Status: resolved