• Hello,

    2 issues we have encountered using the Contact Form 7 setup.

    1) If you mark the mobile number field as a mandatory – with an * – the field fails in the form – shows a line of text instead af an input field.
    That means you don’t get a field-related error message if the field is empty upon submission, which confuses the users “what did I do wrong??”

    2) If the subscriber has already signed up – the form fails, but you can’t see why.
    How to inform a re-subscriber that he/she is already subscribed when accessing the form?
    In this site-case it is mandatory to be logged in as a registered user to access the form, so it could be possible to make use of the GatewayID for the signup – but then, how?
    Best would be to show a message: “this mobile number is already a subscriber”

    When will we see a WP 5.4.x update?

    Thanks in advance.
    Lars

    • This topic was modified 4 years, 5 months ago by LarsHdg.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter LarsHdg

    (@larshdg)

    Latest update (29-6-2020), did not fix the CF7 form with respect to the “gw_phone” field being optional set as mandatory. If the gw_phone* (=mandatory) is set the field becomes invalid and displays as a simple text-line in the form.

    Please fix in order to highlight this field in the error messaging.

    More thanks in advance ??

    Rgds, Lars

    Plugin Author trojborg

    (@trojborg)

    Hey Lars,

    Thank you very much for your input.
    We didn’t get to address the issue you reported in yesterdays release, but I’ll look into it over the next few days and post an update ??

    Kind regards,
    Morten

    Plugin Author trojborg

    (@trojborg)

    Hi Lars,

    What happens if you leave out the asterisk (*) from the shortcode of gw_phone?
    Ofcause the integration should follow guidelines of CF7, but the field is right now implemented as mandatory if your action is signup and should allready print out error messages according to the ones you requested.

    Could you please provide the entire body of the form your having issues with?

    Kind regards
    Morten

    Thread Starter LarsHdg

    (@larshdg)

    Hi Morten,

    If I leave the “*” out, then it works, but I don’t get an error on the gw_phone-field if an entry is missing – or if the number is already in use (as important!).

    The body of the form is (slightly anonymized) – I believe you know my email if we’re to be more specific:

    <h4> Alle felter skal udfyldes </h4>
    <small> [text user-login id:user-login readonly default:user_login]</small>

    <label>Fornavn
    [text* your-fname default:user_first_name]
    </label>

    <label> Efternavn
    [text* your-lname default:user_last_name]
    </label>

    <label> E-mail
    [email* your-email default:user_email]
    </label>

    <p>Mobilnummer (45)
    [gw_country country default:45 “45”][gw_phone mphone default:user_pie_text_10] </p>

    [gw_groups gruppe hidden “212”]
    [gw_action gw_action-355 action:signup verify:yes]

    <p>[acceptance acceptance-819] Jeg accepterer, at dette mobilnummer m? anvendes til SMS-adviseringer </p>

    [response]

    [submit “Send tilmelding”]

    Best regards
    Lars

    Plugin Author trojborg

    (@trojborg)

    Hi Lars,

    It seems your missing the identifier from the field.
    Could you please try adding gw_phone-70 to the shortcode and see if that helps?

    <p>Mobilnummer (45)
    [gw_country country default:45 “45”][gw_phone gw_phone-70 mphone default:user_pie_text_10] </p>
    

    Kind regards

    Thread Starter LarsHdg

    (@larshdg)

    Hi Morten,

    Sorry no, doesn’t make a difference – and it shouldn’t as mphone is/was unique.
    Result is the same – just a message of “…. missing something ….” with no direct point to the gw_phone field.

    BR Lars

    Plugin Author trojborg

    (@trojborg)

    Hi Lars,

    Sorry for the delay, but back from vacation now.
    I’ve just checked your code on a clean installation of WordPress with GatewayAPI and CF7.

    Its seems your code are using “ (Left Double Quotation Mark) instead of ” (Quotation Mark) for attributes on gw_country and gw_phone tags.

    Its the only thing I had to change in order for it to work on a clean installation of WordPress.

    I’ve pasted the provided form code below, with the only change being the one i just mentioned above. Please let me know if this was the issue?

    <h4> Alle felter skal udfyldes </h4>
    <small> [text user-login id:user-login readonly default:user_login]</small>
    
    <label>Fornavn
    [text* your-fname default:user_first_name]
    </label>
    
    <label> Efternavn
    [text* your-lname default:user_last_name]
    </label>
    
    <label> E-mail
    [email* your-email default:user_email]
    </label>
    
    <p>Mobilnummer (45)
    [gw_country country default:45 "45"][gw_phone mphone default:user_pie_text_10] </p>
    
    [gw_groups gruppe hidden "212"]
    [gw_action gw_action-355 action:signup verify:yes]
    <p>[acceptance acceptance-819] Jeg accepterer, at dette mobilnummer m? anvendes til SMS-adviseringer </p>
    
    [response]
    
    [submit “Send tilmelding”]

    Kind regards,

    Thread Starter LarsHdg

    (@larshdg)

    Hi again,

    Sorry – hadn’t seen your answer 3 weeks back.

    Meanwhile I have just updated to the 1.6.4 release and it doesn’t make a difference.

    My code was OK, but I tried with your “quote marks” as well – no difference; if the phone number has already been registered it comes out with an undefined error in the fillings of the form – you can’t see where the error is / which field…?
    And it leaves a rotating processing sign next to the Send-button as if it hasn’t ended the submittance after all.

    A new number registration with same form – works fine.
    Update of registration by means of a CF7-form works fine as well.

    Something fishy in the CF7-form-code.

    Best regards

    Thread Starter LarsHdg

    (@larshdg)

    Hi again @trojborg,

    Any news this regarding – a workaround – an update to the plugin – or, something….??

    BR, Lars

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘CF7 Mandatory field. Existing subscriber. WP 5.4.x’ is closed to new replies.