Title: Maximum variable value.
Last modified: April 20, 2023

---

# Maximum variable value.

 *  Resolved [rui9075918](https://wordpress.org/support/users/rui9075918/)
 * (@rui9075918)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/maximum-variable-value/)
 * Good afternoon.
 * Is there any way to assign the maximum limit in a field through the value of 
   another field.
 * For example, assuming that field1 has a variable value, this value will be the
   limit that we can enter in field2.
 * Note: in field2 the value appears dynamically and can also be entered manually.
 * Best regards.

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/maximum-variable-value/#post-16672512)
 * Hello [@rui9075918](https://wordpress.org/support/users/rui9075918/)
 * Thank you very much for using our plugin. You only need to enter the name of 
   field A into the max attribute of field B:
 * ![](https://i0.wp.com/resources.developers4web.com/cff/tmp/2023/04/20/7PlBtspLUE.
   png?ssl=1)
 * Best regards.
 *  Thread Starter [rui9075918](https://wordpress.org/support/users/rui9075918/)
 * (@rui9075918)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/maximum-variable-value/#post-16672629)
 * Good afternoon again.
 * **It works if both fields are “#number”**, but when I apply it to a “calculated
   Field” it says “Please enter a value less than or equal to 0.”
 * I tested the same field as a limit, in a “#number” and “calculated Field” and
   it only worked as a limit in the field of type “#number”. Is there any way to
   do it for fields like “Calculated Field” as well?
 * Note: my “Calculated Field” contains a function.
 * Best regards.
 *  Thread Starter [rui9075918](https://wordpress.org/support/users/rui9075918/)
 * (@rui9075918)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/maximum-variable-value/#post-16673201)
 * Good afternoon,
 * I already managed to solve it.
   Thank you so much again.
 * I applied a solution like the one in “[https://wordpress.org/support/topic/input-radio-disabled-property/](https://wordpress.org/support/topic/input-radio-disabled-property/)“
 * Best Regards
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/maximum-variable-value/#post-16673219)
 * Hello [@rui9075918](https://wordpress.org/support/users/rui9075918/)
 * Thank you so much for letting me know you found the solution and sharing it.
 * Best regards.

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

The topic ‘Maximum variable value.’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/maximum-variable-value/#post-16673219)
 * Status: resolved