Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author cimatti

    (@cimatti)

    Go to the “Fields” page. Add a new field making sure to select “Submit button” from as field type. Drag this new field at the end of the form you are creating. That way you will override the default submit button and you will be able to change the text as you wish.

    Thread Starter Adriana08

    (@adriana08)

    Thank you very much. ??
    And is it possible to create a new field, where only ciphers (mobile no.) are alowed?

    Thread Starter Adriana08

    (@adriana08)

    ?

    Plugin Author cimatti

    (@cimatti)

    Currently it’s not possible without a bit of code.

    If you can understand PHP, or if you can hire a programmer, you have to create a simple plugin with some code like this:

    add_filter('accua_form_validate', 'my_validate_function', 10, 4);
    function my_validate_function($valid, $submittedID, $submittedData, AccuaForm $form){
      if (isset($submittedData['my_field_id'])) {
        if (!preg_match['/[0-9]+/', $submittedData['my_field_id']]) {
          $valid = false;
          $form->setFormError('You have to enter only numbers', 'my_field_id');
        }
      }
      return $valid;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘submit button’ is closed to new replies.