Topic: datepicker 2 sends "undefined_submit" on hiddenName
spidey priority asked 4 years ago
Expected behavior
When sending form to server and use the 'hiddenName' attribute of the datepicker, the server should get the input name in the 'formatSubmit' specific format.
Actual behavior
Now the server recives the correct format of the 'formatSubmit' but the key is: "undefined_submit" => "2020-06-09". I can mention that I have 2 datepickers, and the same result is even with one. Also tried with default examples from documentation, but I get the same result. I am using Webpack for compilation (default one from Laravel 7)
Resources (screenshots, code snippets etc.)
$('.datepicker').datepicker({
format: 'd mmm, yyyy',
formatSubmit: 'yyyy-mm-dd',
hiddenName: true,
});
<div class="md-form md-outline input-with-post-icon datepicker my-2">
<input
placeholder="Choose"
type="text"
name="check_in"
id="check_in"
class="form-control">
<label for="check_in">Check In</label>
<i class="fas fa-calendar input-prefix" tabindex="0"></i>
</div>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB jQuery
- MDB Version: 4.19.0
- Device: PC
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No
Grzegorz Bujański staff commented 4 years ago
Hi. Thanks for reporting. We will check and fix it
spidey priority commented 4 years ago
any news/fixes for this issue ?
Tomek Makowski staff commented 4 years ago
Unfortunately for this moment no.