• Resolved abdallahelhadad

    (@abdallahelhadad)


    Hi everyone,

    I have a form with a strip payment, I have a field that the user will use to enter some data… Is there a way where I can do some stuff on the server and tell the form if the field passed the validation or not to hide the payment part?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @abdallahelhadad

    I hope you are doing well.

    We have some possibilities here but all of them require some custom coding.

    1. Using the Hidden field, you can set a custom value, let’s say define a flag “hidden” “show”, and configure the payment field using that flag to show or hide via field conditional https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#Forminator-Conditional-Logic

    add_filter( 'forminator_field_hidden_field_value', function( $value, $saved_value, $field ){ .. your logic }

    2. modifying the field render

    do_action( 'forminator_before_form_render', $id, $form_type, $post_id, $form_fields, $form_settings );

    Along with

    apply_filters( 'forminator_field_stripe_markup', $html, $attr, $field );

    But note that creating the full solution will be outside the scope of support we can provide. For that, you’ll need to hire a developer to provide the required custom code for you. WordPress provides a jobs directory here https://jobs.wordpress.net/, if you need further advice about it, feel free to email wpsupport@incsub.com.

    Subject: ATTN: WPMU DEV support – wp.org

    Kind regards,
    Patrick Freitas

    Hi @abdallahelhadad

    We haven’t heard from you in a while, I’ll go and mark this thread as resolved. If you have any additional questions or require further help, please let us know!

    Kind Regards,
    Kris

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

The topic ‘Validating fields on server’ is closed to new replies.