Comments (3)
I've added the ability to use the following:
{{ craft.formie.renderForm(form, {
scriptAttributes: {
nonce: 'test',
},
}) }}
This will add any attributes you define in scriptAttributes
to every <script>
tag Formie uses. If you want to target just the formie.js
file, you can add:
{{ craft.formie.renderForm(form, {
scriptAttributes: {
nonce: 'test',
},
jsAttributes: {
initJs: false,
},
}) }}
These are also supported in the standalone tags:
{{ craft.formie.renderFormJs('contactForm', {
scriptAttributes: {
nonce: 'test',
},
}) }}
{{ craft.formie.renderJs(false, {
scriptAttributes: {
nonce: 'test',
},
}) }}
{% do craft.formie.registerAssets('contactForm', {
scriptAttributes: {
nonce: 'test',
},
}) %}
Fixed for the next release. To get this early, run composer require verbb/formie:"dev-craft-4 as 2.1.28"
.
from formie.
@engram-design thank you! It is working 👍
from formie.
Related Issues (20)
- Provide a rich syntax language or directives for spam keywords
- Add form as a type to the craft link field type HOT 3
- Add Moneris Payment integration
- Encrypted Field Data Too Long HOT 8
- Error during Form Synchronization with Campaign Plugin: API Error on Newsletter Subscription HOT 2
- Klaviyo integration: only 10 lists shown HOT 2
- fieldInputWrapper: false does not work when used on specific field type in themeConfig HOT 5
- Conflict with Google Maps when using validation Address fields HOT 3
- [3.x] Localization of phone field with country select not possible HOT 5
- Multiple submissions in one multi-page form HOT 9
- Change layout of Entries field (Checkboxes or Radio Buttons)
- LitEmoji causing timeouts over ajax submissions
- Missing the general permission to manage Form Usage HOT 2
- [3.x] Duplicating a form with repeater, uses a reference instead of copy HOT 2
- Wrong autocomplete value for telephone HOT 2
- Address fields are suddenly no longer displayed HOT 1
- Error in GQL when trying to query subFieldLabelPosition HOT 1
- [3.x] Importing Formie as a module into JS causes errors for repeater field HOT 4
- [3.x] Form with Repeater field with a file upload field in it has error on submission HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formie.