⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

disable clear form



edis_

edis_
  • profile picture
  • Member

Posted 14 December 2016 - 10:06 AM

Hi all, how to disable clear form after hit save button?
Thanks

Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 21 December 2016 - 08:12 AM

Well that is a base feature functionality that is needed by every user usually. What you need is custom solution - you can look up for the callback on the save button - that dose some ajax call.. and post the call - it will go back and clear up all the field values in the form. Just look up for that piece of code where it resets the form - comment it out and u will have the desired solution.

 

Happy GCing :)


edis_

edis_
  • profile picture
  • Member

Posted 15 January 2017 - 06:57 AM

Thanks Amit Shah for your respons,
I am newbie in GC, can you show me more detail that codes?is the location in datatables-add.js?
Thanks very much

Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 18 January 2017 - 02:11 AM

Well u can lookup the same / identify using firefox developer edition (blue)... i dont preferably use datatables .. so i cannot comment if thats the one or not.!! Search out for ajax calls in the js files.. even i would have done the same.. :) I am not able to share you the code details as i never needed to have such functionality implemented.. ! But shared you basis the architecture level scenario..

 

Happy GCing :)


edis_

edis_
  • profile picture
  • Member

Posted 19 January 2017 - 02:08 AM

Thankyou Amit,
I found the code and it working now.:-D
Now I have new question.

<code>
$crud->set_relation('ern','employee','{name}-{position}');
</code>
I want to separate name and position into two columns. How to do that Amit
Thank you