Jump to content

callback_edit_field on DateTime field

callback_edit_field date time datetime

  • Please log in to reply
2 replies to this topic

#1 Ron



  • Members
  • PipPip
  • 19 posts

Posted 07 April 2014 - 12:39 PM

I would like to insert some text infront of my DateTime field. I tried the below, it works but I lost the nice datetime pop-up. Is is possible to keep the nice datetime pop-up with prefix? I tried type='DateTime', maybe not the right syntax?






function edit_field_callback_2($value, $primary_key)
//add prefix for field
return 'Only if Scheduled Pick-Up has changed <input type="DateTime" value="'.$value.'" name="Revised_PickUp_by_Carrier">';

#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 09 April 2014 - 07:33 AM

Well first of all there is not input type with date time registered... what you probably will need to do is.. copy / paste the functionality from an existing gc form (add / edit) and then add the content to the same .. !! that should surely workout for you...


Or if you want, you can look out here - the library here is modified and so is the view to set a field tip. This is what you can extract, add to your library and view of GC and just use field_tip function to set tips for each field - the display currently is being shown up on right hand side.. you can adjust it your own way...


Happy GCing :)

#3 Ron



  • Members
  • PipPip
  • 19 posts

Posted 17 April 2014 - 11:23 AM

Thank you. Sorry for late reply. I will try.

Also tagged with one or more of these keywords: callback_edit_field, date, time, datetime

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users