

#1
Posted 30 June 2012 - 11:17 AM
This is my first post here. Already inlove with Grocery Crud.
I want to make some modification with the "ADD" view. Please help me out.
I want something like this: http://prntscr.com/bcljp
Here, the first coulmn fields belong to the same column in the database.
Thanks.
#2
Posted 01 July 2012 - 01:15 AM
assets\grocery_crud hemes\flexigrid\views\add.php
assets\grocery_crud hemes\flexigrid\views\edit.php
Cheers
#3
Posted 01 July 2012 - 12:01 PM
I dont want to change each and every view like above. I only want 1-2 views like I mentioned above.If you use the default (flexigrid) theme then you can edit the files below:
assets\grocery_crud hemes\flexigrid\views\add.php
assets\grocery_crud hemes\flexigrid\views\edit.php
Cheers
#4
Posted 01 July 2012 - 04:45 PM
showAddForm()of the grocery_crud.php library (around line 1456) and have a condition before you call
$this->_theme_view('add.php',$data);in order to call your custom add views.
#5
Posted 01 July 2012 - 05:45 PM
I'm afraid there's no easy way of doing this. web-johnny please correct me if I'm wrong, but I believe you would need to change the function
showAddForm()of the grocery_crud.php library (around line 1456) and have a condition before you call$this->_theme_view('add.php',$data);in order to call your custom add views.
I can use this by session variables but the problem is how do I achieve the required functionality in my view. Can you please share some sample code with me to achieve my requirement.
#6
Posted 01 July 2012 - 06:27 PM

2nd dropdown box is buggy. I cant figure out why.
Please suggest me what to do.
#7
Posted 01 July 2012 - 06:48 PM
#8
Posted 27 March 2019 - 06:57 PM
Great, that solved this problem for me...
Thank You!!!! r00tkiit
I'm afraid there's no easy way of doing this. web-johnny please correct me if I'm wrong, but I believe you would need to change the function
showAddForm()of the grocery_crud.php library (around line 1456) and have a condition before you call$this->_theme_view('add.php',$data);in order to call your custom add views.
Also tagged with one or more of these keywords: add, view, modify
Support →
Bugs / Issues →
Problem in ViewStarted by alvees_dan, 07 Jun 2020 ![]() |
|
![]() |
||
Support →
I have a question →
How to create a pdf from read viewStarted by Luiz_Techboard_BR, 17 Mar 2020 ![]() |
|
![]() |
||
Support →
I have a question →
CSRF Regenerate Not WorkingStarted by satheesh, 10 Dec 2019 ![]() |
|
![]() |
||
Support →
I have a question →
Change url for viewStarted by nasrDev, 20 Jul 2018 ![]() |
|
![]() |
||
Support →
I have a question →
Get ValuesStarted by nasrDev, 20 Jul 2018 ![]() |
|
![]() |
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users