Search results

  1. H

    radio list loading without selected default value

    I have a table with id and points. id points 1 10 2 20 3 30 i am using below code to generate radio list in Eval populate. here issue is radio list loading without selected any value. i need to select id (2) as default value every time form loads. how to do it...
  2. H

    set default selected option in Eval populate

    how to use below code for radio list with default selected option in dropdown > advanced > Eval populate. $db = JFactory::getDbo(); $db->setQuery('SELECT id, text FROM #__tablename'); $rows = $db->loadObjectList(); foreach ($rows as $row) { $options[] = JHTML::_('select.option', $row->id...
  3. H

    How to use variable in Mysql WHARE Clause

    I use the following code to filter dropdown menu in 'Joins where and/or order by statement (SQL)' section. but it is not loading. $user =& JFactory::getUser(); WHERE name = '".$user ."'
  4. H

    Sql limit not working

    I am trying to get 2nd last record using below code in 'Default' option. but it outputs the last record not 2nd last record. what is the issue? $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('name')->from('mytable')->order('id DESC')->setLimit('1,2')...
  5. H

    Show/Hide a form field depends on other field's value

    Table A got 4 form items ID Status Name Age (here Status as radio button in the form) If form of Table A loads only ID & Status are visible. Status has two options (Yes/No). If we select Yes from Status, It will show Name & Age. If we select No from Status, It will hide Name & Age. How to...
  6. H

    Dropdown list items from two tables

    I have got three tables Table 1 ID Name 1 John 2 Paul Table 2 ID Name 1 Ricky 2 Waugh Table 3 has a dropdown. that dropdown should load name from both Table 1 & Table 2. How to do it?
  7. H

    last updated data as default value

    I have a form with a field. I need to load last updated data to that field as default value, each time form submitted. How to do it?
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top