conditional field read-only
-
Hello.
I display the appropriate currency depending on the country selected.
Is it possible to display a conditional field (“Currency”) as read-only?Thanks and regards,
RolfThe page I need help with: [log in to see the link]
-
What other plugins and theme do you use on the site?
THEME:
“Astra” Theme (https://wpastra.com/)
Plugins:
Advanced Custom Fields
Advanced Custom Fields Multilingual
Antispam Bee
Better Font Awesome
Burst Statistics – Privacy-Friendly Analytics for WordPress
Category Order and Taxonomy Terms Order
Complianz | GDPR/CCPA Cookie Consent
Contact Form 7
Contact Form 7 Multilingual
Custom Post Type UI
Duplicate Page
Duplicator
Elementor
ELEX WooCommerce Catalog Mode
FiboSearch – AJAX Search for WooCommerce
Give – Donation Plugin
Insert PHP Code Snippet
Starter Templates
Store Customizer
Ultimate Addons for Contact Form 7
Woocommerce
Woocommerce Multilingual & Multicurrency
WordPress Importer
WPForms Lite
WPForms Multilingual
WP Mail SMTP
WPML All Import
WPML Export and Import
WPML Multilingual CMS
WPML SEO
WPML String TranslationTo explain once again exactly what this is about:
I have a selection list of countries. Depending on the selection, the appropriate currency should be displayed, but this should not be editable.
See picture: https://dev.wolna-ukraina.eu/wp-content/uploads/2024/07/waehrung.png
Which plugin (or theme) is expected to do the task?
I use Contact Form 7 for this.
The field “Währung” should be read-only in the form.
And this is the corresponding code:[uacf7-row]
[uacf7-col col:4] <label>Land<span style="color: #dc3232;">*</span>
[select* auswahl-land include_blank "Albanien" "Andorra" "Belgien" "Bosnien und Herzegowina" "Bulgarien" "Dänemark" "Deutschland" "Estland" "Finnland" "Frankreich" "Griechenland" "Irland" "Island" "Italien" "Kasachstan" "Kosovo" "Kroatien" "Lettland" "Liechtenstein" "Litauen" "Luxemburg" "Malta" "Moldau" "Monaco" "Montenegro" "Niederlande" "Nordmazedonien" "Norwegen" "Österreich" "Polen" "Portugal" "Rumänien" "San Marino" "Schweden" "Schweiz" "Serbien" "Slowakei" "Slowenien" "Spanien" "Tschechien" "Türkei" "Ukraine" "Ungarn" "Vatikanstadt" "Vereinigtes Königreich" "Vereinigte Staaten von Amerika"]</label>[/uacf7-col]
[uacf7-col col:4]
<label>Währung</span></span></label>
[conditional ALL][text ALL "Lek (ALL)"][/conditional] [conditional BAM][text BAM "Konvertibel Mark (BAM)"][/conditional] [conditional BGN][text BGN "Lew (BGN)"][/conditional] [conditional CHF][text CHF "Schweizer Franken (CHF)"][/conditional] [conditional CZK][text CZK "Tschechische Krone (CZK)"][/conditional] [conditional DKK][text DKK "Dänische Krone (DKK)"][/conditional] [conditional EUR][text EUR "Euro (EUR)"][/conditional] [conditional GBP][text GBP "Pfund Sterling (GBP)"][/conditional] [conditional HRK][text HRK "Kroatische Kuna (HRK)"][/conditional] [conditional HUF][text HUF "Forint (HUF)"][/conditional] [conditional ISK][text ISK "Isländische Krone (ISK)"][/conditional] [conditional KZT][text KZT "Tenge (KZT)"][/conditional] [conditional MDL][text MDL "Moldauischer Leu (MDL)"][/conditional] [conditional MKD][text MKD "Mazedonischenr Dena (MKD)"][/conditional] [conditional NOK][text NOK "Norwegische Krone (NOK)"][/conditional] [conditional PLN][text PLN "Zloty (PLN)"][/conditional] [conditional RON][text RON "Rumänischer Leu (RON)"][/conditional] [conditional RSD][text RSD "Serbischer Dinar (RSD)"][/conditional] [conditional SEK][text SEK "Schwedische Krone (SEK)"][/conditional] [conditional TRY][text TRY "Neue Lira (TRY)"][/conditional] [conditional UAH][text UAH "Hrywna (UAH)"][/conditional] [conditional USD][text USD "US-Dollar (USD)"][/conditional]
[/uacf7-col]OK. It’s the “Ultimate Addons for Contact Form 7” plugin. Here is its support forum > https://wordpress.org/support/plugin/ultimate-addons-for-contact-form-7/
The topic ‘conditional field read-only’ is closed to new replies.