Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODX/FormIt #24

Open
gingerchew opened this issue Jul 7, 2020 · 1 comment
Open

MODX/FormIt #24

gingerchew opened this issue Jul 7, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@gingerchew
Copy link
Member

MODX/FormIt example makes it easier for other people in the company to understand how to connect the frontend and backend aspects of this in the future

@gingerchew gingerchew added the documentation Improvements or additions to documentation label Jul 7, 2020
@gingerchew
Copy link
Member Author

Here's what I used the most recent time:

[[!FormIt?
    &hooks=`...,captcha_verification,...`
    &captcha_difficulty=`[[*captcha-difficulty]]`
]]
<form action="[[~[[*id]]]]" method="POST" class="whc-form">
    ...
    <input 
        type="submit"
        name="submitIt"
        class="whc-button"
        data-finished="submit"
        value="verifying" />
    <!-- <input name="captcha_verification" value="..." /> inserted with JS -->
</form>
<script async defer id="whcScriptTag" data-button="whc-button" data-form="whc-form"></script>

and TV Options:

{
    "name": "captcha-difficulty",
    "caption": "Captcha Difficulty: A number 1-10",
    "description": "10 being the most difficult and taking the longest to verify",
    "options": {
        "inputTVtype": "number",
        "defaultValue": "3"
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant