Title: edit form
Last modified: April 28, 2024

---

# edit form

 *  Resolved [Francis](https://wordpress.org/support/users/emolotel/)
 * (@emolotel)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/edit-form-9/)
 * Can I change single line text to number? (field type)
    -  This topic was modified 2 years, 1 month ago by [Francis](https://wordpress.org/support/users/emolotel/).

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/edit-form-9/#post-17718622)
 * Hello [@emolotel](https://wordpress.org/support/users/emolotel/)
 * I’m sorry, but I don’t understand your question. You remove the “Single Line 
   Text” field from the form and insert a “Number” field in the same place. Finally,
   it is necessary to edit the equations and dependencies where you used the “Single
   Line Text” field to include references to the “Number” field.
 * Best regards.
 *  Thread Starter [Francis](https://wordpress.org/support/users/emolotel/)
 * (@emolotel)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/edit-form-9/#post-17718657)
 * I needed not to change the name of the field, I have to redo all the formulas
   linked together. if I could change the type of field it was easier. Thanks anyway
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/edit-form-9/#post-17718668)
 * Hello [@emolotel](https://wordpress.org/support/users/emolotel/)
 * No, I’m sorry, you cannot change the field type, but you can enter a regular 
   expression in the “Single Line Text” field settings to validate the entered values
   to accept numbers only.
 *     ```wp-block-code
       /^[\+\-]?\d+(\.\d+)?$/
       ```
   
 * Enter the error message indicating the user the valid value through the “Error
   message when the regular expression fails” attribute.
 * Best regards.

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

The topic ‘edit form’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/edit-form-9/#post-17718668)
 * Status: resolved