How can i get another field value in partial balde?

$form->add( Input::make()->name('lat')->label('Latitude') ); $form->add( Input::make()->name('lon')->label('Longitude') ); $form->add( BladePartial::make()->view('admin.dealer_map')->render() ); In public function getForm(TwillModelContract $model) And i created a dealer_map.blade.php <div> <iframe width="425" height="350" src="https://www.openstreetmap.org/export/embed.html?bbox=88.363892%2C22.572645%2C88.363892%2C22.572645&amp;layer=mapnik&amp;marker=22.572645%2C88.363892" style="border: 1px solid black"></iframe> </div> Here i want to add dynamic lat long in edit page. How can i get value Latitude and Longitude in partial balde?
1 Reply
ifox
ifox8mo ago
You won't be able to do this on the controller side, you would need a custom vue component. We have a maps field that uses Google Maps. It should be straightforward to build one for openstreetmap
Want results from more Discord servers?
Add your server