⚠ 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

add textbox in add page



kdm
  • profile picture
  • Member

Posted 22 January 2013 - 13:07 PM

hi all,

i want to add extra textbox field in add section. the fields is not in table
eg in table one field 'address' that stores multiline address.
but in page when use click on 'add' button , i want to show 'address1','address2','area' as 3 text boxes.

please reply., if anyone has solution

davidoster
  • profile picture
  • Member

Posted 23 January 2013 - 04:03 AM

Check this page:
http://www.grocerycrud.com/documentation/options_functions/callback_add_field

kdm
  • profile picture
  • Member

Posted 23 January 2013 - 06:06 AM

thanks david,
it works...

kdm
  • profile picture
  • Member

Posted 23 January 2013 - 13:22 PM

hey david, i apply above method and it works.

but now i have dropdown with state name which is related ti states table using set_relation().

below that dropdown, i want to give new city textbox. so if i uses callback_add_field() then i loss the state value from states table.

so what can be solution...?

davidoster
  • profile picture
  • Member

Posted 23 January 2013 - 15:15 PM

maybe this approach is better for you then!
dependent dropdown library
/topic/1087-updated-24112012-dependent-dropdown-library/