Your new Tamaro widget's default configuration allows donors to enter their address, postal code, city, country of residence, payment information, and more depending on your needs. All of the described input fields use a placeholder attribute that defines a short hint describing an input field's expected value.
In case you have a need, you can define the placeholder attributes to your preference.
Example of personalised placeholder for First name form input field:
Prerequisites
Tamaro Widget version 1.4.0 or higher.
Customising an input field placeholder
In order to customise an input field placeholder, you can directly modify the Giving form Widget script.
<script>
window.rnw.tamaro.runWidget('.rnw-widget-container', { language: 'en', debug: true, translations: { en: { payment_form: { placeholders: { stored_customer_salutation: "Select a Salutation", stored_customer_country: "Select your country", stored_customer_firstname: "My first name", stored_customer_lastname: "My last name", stored_customer_email: "My email", stored_customer_message: "My message", stored_customer_street: "My street", stored_customer_street_number: "My house number", stored_customer_street2: "Apartment 123", stored_customer_pobox: "", stored_customer_zip_code: "", stored_customer_city: "", }, }, }, }, }); </script>
Comments
0 comments
Please sign in to leave a comment.