Show latitude and longitude in Hidden

Hi is there any chance to show by default the value of latitude and longitude in a Hidden, I need not to show them but I need the values to store in DB
4 Replies
abdullafahem
abdullafahemOP6mo ago
But the values are taken from JavaScript And need to store in a Hidden after that in DB
hurycz
hurycz5mo ago
I need same, but hidden field for delivery js widget. Any solutions? I found solution in JS: const jsonElement = document.querySelector("#packeta-selector-json"); jsonElement.value = JSON.stringify(point); jsonElement.dispatchEvent(new Event('input')); now filament shows hidden data: public function create() { $formState = $this->form->getState(); dd($formState) }
Want results from more Discord servers?
Add your server