alex malik β created an issue.
I tried using Custom JavaScript, it works. The date changed immediately without clearing the cache. Here is my code
document.addEventListener('DOMContentLoaded', function () {
// Find date fields by their ID
var dateField1 = document.getElementById('edit-your-date-field-id-3days'); // For +3 days
var dateField2 = document.getElementById('edit-your-date-field-id-21days'); // For +21 days
// Get current date
var today = new Date();
// Set date for +3 days
today.setDate(today.getDate() + 3);
dateField1.value = today.toISOString().split('T')[0]; // Format YYYY-MM-DD
// Set date for +21 days
today.setDate(new Date().getDate() + 21);
dateField2.value = today.toISOString().split('T')[0]; // Format YYYY-MM-DD
});
How to Use:
1. Replace the Identifiers:
- Change 'edit-your-date-field-id-3days' and 'edit-your-date-field-id-21days' to the actual IDs of your date fields.
2. Insert the Code:
Add this code in the custom JavaScript section of your web form settings.
/admin/structure/webform/manage/webform-id/settings/assets
3. Save Changes and verify the results on the form page.
Alex Malik β created an issue.
I need help specifically on the web form module. Our developers want to understand how it works in the code, some instructions or documentation with the code
Alex Malik β created an issue.
thanks It works!
Alex Malik β created an issue.
it turns out the second option, as you indicated
We need to change the whole data inside the data[] from block to page specific.
Hi, thanks a lot for the feedback. It would be convenient to see the identifier of the page (in the form of a link) from which the form was sent in the submission results
https://disk.yandex.ru/i/tOCfbjEaJuEqmA - just solved the problem. Thanks for the help. Went into URL synonyms settings. The default value of 100 has been changed to 200 characters.
https://disk.yandex.ru/i/3y625lxZmtBJxQ - Now I understand what you were talking about. Looked at settings, restriction on 100 characters is specified. It turns out that everything is fine with navigation.
https://disk.yandex.ru/i/uVAPbUQfvzLc_g - the problem is in the url of the address bar. Path auto for some reason does not want to completely issue the full url according to my template.
Alex Malik β created an issue.