Jump to content

$form->select help


sasori

Recommended Posts

its a cake framework sir

 

here's the "i think" code of the recipient text box

 

    
    // autocomplete
    $formMailCompose .= $html->div('input text floatLeft', 
        '<label for="Accounts/name">To</label>' .
            $ajax->autoComplete('_Account_', 'autocomplete', array(
            'afterUpdateElement' => 'updateHidden',
            'style' => 'width: 410px; margin-left: 30px;'
        )
    ));
    
    // target_id
    $formMailCompose .= $form->hidden('target_account_id', array(
        'id' => 'target_account_id'
    ));

 

so how am i gonna insert or  make the dropdown menu  to make it appear like

 

To Username: "dropdown here"

 

instead of

 

To Username: "input box here"

Link to comment
https://forums.phpfreaks.com/topic/129897-form-select-help/#findComment-673432
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.