Retrieving parameter #1727
Unanswered
farhanaazzz
asked this question in
Q&A
Replies: 1 comment
-
@farhanazulaikha You can add one hidden field in your edit blade file. Input::make('user.id') ->type('hidden'); You can inspect for name of this field in the generated form. I believe it will have randomly generated id but name of the field will be user[id]. From your jquery event, you can read the dom element with this name and get value. Hope this helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a screen (view) containing a list of users in table form. There is a column for editing the user's details which I made in a popup form. I have a problem passing the parameter from the screen to the Blade popup form. When I clicked on the modal popup, the information the user entered are not there eventhough I retrieved it using the 'old' function. This led me to believe that the user ID is not passed well from the PHP file. Here is the code for clicking the modal popup:
UserDetailsScreen.php
When I inspect one of the modal popup, the id of the user did appear in the elements like this:
But not in the URL of the webpage since it is just a popup window.
Here is my custom blade form for the popup. The JavaScript part at the end is the part where I want to retrieve the parameter.
editForm.blade.php
I have tried retrieving the parameter using .val() but it does not work. Does anyone have any idea? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions