Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing parameters #10

Open
kobrien603 opened this issue May 5, 2022 · 1 comment
Open

Passing parameters #10

kobrien603 opened this issue May 5, 2022 · 1 comment

Comments

@kobrien603
Copy link

I've been trying to pass a parent param into the ajax request but I can't seem to find the value on the server side.

Goal is to get a list of contacts from HubSpot based on the selected Report Type.

// Route
Route::get('hubspot/contact-lists-test/', 'API\APINovaController@get_hubspot_contact_list_by_report_type')->name('api.hubspot.contact.list.by.id.test');

// controller
public function get_hubspot_contact_list_by_report_type(Request $request)

// nova page
Select::make('Report Type', 'report_type_id')->options($trReportTypes),
AjaxField::make('HubSpot List', 'hs_list_id')
->setUrl('/api/nova/hubspot/contact-lists-test')
->parent('report_type_id')
->typeInt(),

I believe my issue is with how the Route is set up into the controller. Could you review and let me know?

Nova Version: 2
Laravel Version: 6
PHP Version: 7.4

@apsbd
Copy link

apsbd commented Sep 14, 2022

Select::make('Report Type', 'report_type_id')->options($trReportTypes),
AjaxField::make('HubSpot List', 'hs_list_id')
->setUrl('/api/nova/hubspot/contact-lists-test')
->parent('report_type_id')
->responsive()
->typeInt(),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants