• Resolved Francis

    (@emolotel)


    Can I change single line text to number? (field type)

    • This topic was modified 7 months ago by Francis.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @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

    (@emolotel)

    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

    (@codepeople)

    Hello @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.

    /^[\+\-]?\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.