Modify a baked [login to view URL] View in CakePHP

I need to modify a baked [url removed, login to view] View in a CakePHP project. Actually the edit-view has got a section of checkboxes which refers the following join table (in a MySQL database):

CREATE TABLE IF NOT EXISTS `amenities_properties` (

`id` int(11) unsigned NOT NULL auto_increment,

`property_id` int(11) NOT NULL,

`amenity_id` int(11) NOT NULL,

`specify` varchar(100) NOT NULL default 'yes',



The join table is extended with the extra field 'specify' and right now the [url removed, login to view] partially refers this table by using the default FormHelper like this:

echo $form->input('Amenity', array( 'type' => 'select', 'multiple' => 'checkbox' ));

But, as you can see, like this no extra value for 'specify' is handled.

What I need is to change the edit-view so that a user can set values 3 possible values for the 'specify' field like this:

'no' ....................if checkbox is left unchecked

'yes' ...................if checkbox is checked

'whatever'...............if checkbox is checked AND a string 'whatever' is inserted

and after that, the join table in the database should be properly updated when button SUBMIT is pushed.

In other words I need to associate to each checkboxes an additional input text field to be eventually filled only if the checkboxes are previously checked.

To let this type of choice possible I would like to be used a javascript function like the following (see it in action):

[url removed, login to view]

In order to visualize better what I need, i attached an image "from this to this" that should better show you what I'm talking about.

If you think you can do this work don't hesitate to ask me any further details and if you'll be choose for the job I will upload the working CakePHP project on a webhosting and give you FTP and MySQL access.

Taidot: Javascript, PHP

Näytä lisää: modify cakephp input value using javascript, cakephp checkbox change view, cakephp checkbox edit, cakephp edit baked ctp, cakephp edit join table, work view, what are work values, view work, view job, primary job, need a associate, multiple image upload in php, m string, m&a associate, job values, job edit, edit job, upload edit view cakephp, cakephp change edit view, cakephp checkbox edit form, cakephp change primary key edit button, cakephp checkbox javascript, cakephp ctp javascript, cakephp upload edit, cakephp extra checkbox view

Tietoa työnantajasta:
( 0 arvostelua ) La Spezia, Italy

Projektin tunnus: #497794

4 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hello! Our professional team is interested in this project. We have a great experience with CakePHP.

$120 USD 3 päivässä
(2 arvostelua)

ATL Labs having a good experience of web designing, web programming using php/mysql/ajax and programmed many applications. We are the Professional Web Development Company having couple of years experience. We have expe Lisää

$80 USD 3 päivässä
(1 arvostelu)

I worked in cakephp1.1 and also working cakephp1.2 with ajax & javascript. This is very simple task to do as I did this kind of functionalities in two of my latest projects. I will show all those before starting the jo Lisää

$100 USD 2 päivässä
(0 arvostelua)

Let me finished for you. It's easy for me.

$100 USD 1 päivässä
(0 arvostelua)