By default, there is no option to change the character limit, but you can use this custom JS script
<script> window.ameliaActions = { beforeBooking: function (success, error, data) { let customFieldId = 1; if (customFieldId in data.bookings[0].customFields) { data.bookings[0].customFields[customFieldId].value = data.bookings[0].customFields[customFieldId].value.substring(0, 3); } success(); } } </script>
Custom code needs to be applied to the page where the booking form is. Depending on what you're using (Gutenberg blocks, or some page builder), adding the CSS or JS can be done in a few different ways.
If you need help with adding custom JS to the page, please take a look at this article.
I hope it helps. Please, let me know if you have any other questions.
Hi Stefan, thank you. Added the javascript, but I am not able to save the text in amelia. It seems that the form field is limited by characters. Any ideas to circumvent the problem?
Sorry, i forgot to mention that you need to change the ID of the field and the limit in the script. If it still doesn't work, i will forward this to the developers in order to check if there is another workaround.
I refer to the checkbox label. Is there a workaround for this? For the client it is "simple text" and he won't understand, why this is not possible ;-)
ALTER TABLE wp_amelia_custom_fields_options
MODIFY COLUMN label TEXT;
You'll also need to do this once you update the plugin when the next version is out, since we can't make changes for this update, we can do it only for updates after that.
NOTICE:
Just be sure to back up your database before making any changes to the table structure, as altering a table can potentially lead to data loss or other unexpected issues.
Hello,
it looks like the number of characters is limited for custom fields (choices). Is there any way to set this limit higher or turn it off?
Many thanks in advcance
Hello Martin,
Thanks for reaching out to us.
By default, there is no option to change the character limit, but you can use this custom JS script
Custom code needs to be applied to the page where the booking form is. Depending on what you're using (Gutenberg blocks, or some page builder), adding the CSS or JS can be done in a few different ways.
If you need help with adding custom JS to the page, please take a look at this article.
I hope it helps. Please, let me know if you have any other questions.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Stefan, thank you. Added the javascript, but I am not able to save the text in amelia. It seems that the form field is limited by characters. Any ideas to circumvent the problem?
Hello Martin,
Sorry, i forgot to mention that you need to change the ID of the field and the limit in the script. If it still doesn't work, i will forward this to the developers in order to check if there is another workaround.
Please, let us know if it works.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thanks Stefan, I am not familiar with javascript, but I am able to insert the code to page. Can you tell me, where to put in the limit in the script?
this is the actual code with the corrected ID:
<script>
window.ameliaActions = {
beforeBooking: function (success, error, data) {
let customFieldId = amelia-shortcode;
if (customFieldId in data.bookings[0].customFields) {
data.bookings[0].customFields[customFieldId].value = data.bookings[0].customFields[customFieldId].value.substring(500, 3);
}
success();
}
}</script>
The amelia backend-page is not saving the custom fields, when I copy too much text....
Hello Martin,
Just to double-check, are you referring to the radio or checkbox label? If so, the character limit is 255 for those buttons.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
I refer to the checkbox label. Is there a workaround for this? For the client it is "simple text" and he won't understand, why this is not possible ;-)
Hello Martin,
You'll have to execute this query on your DB:
ALTER TABLE wp_amelia_custom_fields_options MODIFY COLUMN label TEXT;
You'll also need to do this once you update the plugin when the next version is out, since we can't make changes for this update, we can do it only for updates after that.
NOTICE: Just be sure to back up your database before making any changes to the table structure, as altering a table can potentially lead to data loss or other unexpected issues.
I hope it helps. Please, let us know if it works.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables