flyerkhong Posted March 28, 2020 Share Posted March 28, 2020 (edited) Hello everybody, May i know how to let the date & time in "Address" page to be: - auto follow current date & time - block from manual change the date & time. because I'm trying to auto keep the last edit date & time made by admin in "Address" page. please help me on this... thank you and appreciate Edited March 28, 2020 by flyerkhong (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2020 Share Posted March 28, 2020 Which file did you want to edit? File path ? Upload it as an attachment. Link to comment Share on other sites More sharing options...
flyerkhong Posted March 28, 2020 Author Share Posted March 28, 2020 (edited) 11 minutes ago, Guest said: Which file did you want to edit? File path ? Upload it as an attachment. Hi, Appreciate for help. The fields name is "Last Edit Date & Time" as attached image in "Address" page. Do it able to become auto fill-up current date & time and block admin from manual changing the date & time? Thank you and appreciate Edited March 28, 2020 by flyerkhong (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2020 Share Posted March 28, 2020 $temp_fields[] = array( 'type' => 'html', 'label' => $this->trans('Last Edit Date & Time', array(), 'Admin.Global'), 'name' => 'editdatetime', 'html_content' => '<input type="text" name="editdatetime" value="'.Date('Y-m-d H:i:s').'" readonly>', 'col' => '2', ); Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2020 Share Posted March 28, 2020 (edited) Edited March 28, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
flyerkhong Posted March 28, 2020 Author Share Posted March 28, 2020 8 minutes ago, Guest said: $temp_fields[] = array( 'type' => 'html', 'label' => $this->trans('Last Edit Date & Time', array(), 'Admin.Global'), 'name' => 'editdatetime', 'html_content' => '<input type="text" name="editdatetime" value="'.Date('Y-m-d H:i:s').'" readonly>', 'col' => '2', ); Hi, Really appreciate for help. A lot thanks. Thank you and appreciate Link to comment Share on other sites More sharing options...
flyerkhong Posted March 28, 2020 Author Share Posted March 28, 2020 5 minutes ago, Guest said: If I helped you, rate me 😉 may i know click where to give rate? Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2020 Share Posted March 28, 2020 I gladly helped. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now