Hi,
I'm a bit stumped trying to make a form that will update an existing entry.
I've gone through the steps in the chronoforms book on how to use the profile plugin.
The form will update the db but with a new row. My understanding is that it's supposed to update an already existing row??
Here's my form code:
I've got the profile plugin checked for this form and enabled within the form.
Here's a screenshot of the params for the plugin
[attachment=0]params.PNG[/attachment]
I'm sure I'm missing something - a bit confused about the 'Request' parameter name - and can't find any examples on how to use it.
Thanx for your help
Mark
I'm a bit stumped trying to make a form that will update an existing entry.
I've gone through the steps in the chronoforms book on how to use the profile plugin.
The form will update the db but with a new row. My understanding is that it's supposed to update an already existing row??
Here's my form code:
<div class="form_item">
<div class="form_element cf_radiobutton">
<label class="cf_label" style="width: 300px;">DISPLAY NUMBER OF VIEWS</label>
<div class="float_left">
<input value="yes" title="" class="radio" id="radio00" name="radio0" type="radio" />
<label for="radio00" class="radio_label">yes</label>
<br />
<input value="no" title="" class="radio" id="radio01" name="radio0" type="radio" />
<label for="radio01" class="radio_label">no</label>
<br />
</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_radiobutton">
<label class="cf_label" style="width: 300px;">DISPLAY CUSTOMER FEEDBACK</label>
<div class="float_left">
<input value="yes" title="" class="radio" id="radio10" name="radio1" type="radio" />
<label for="radio10" class="radio_label">yes</label>
<br />
<input value="no" title="" class="radio" id="radio11" name="radio1" type="radio" />
<label for="radio11" class="radio_label">no</label>
<br />
</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_radiobutton">
<label class="cf_label" style="width: 300px;">DISPLAY CONTACT INFORMATION</label>
<div class="float_left">
<input value="yes" title="" class="radio" id="radio20" name="radio2" type="radio" />
<label for="radio20" class="radio_label">yes</label>
<br />
<input value="no" title="" class="radio" id="radio21" name="radio2" type="radio" />
<label for="radio21" class="radio_label">no</label>
<br />
</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_radiobutton">
<label class="cf_label" style="width: 300px;">DISPLAY BIO</label>
<div class="float_left">
<input value="yes" title="" class="radio" id="radio30" name="radio3" type="radio" />
<label for="radio30" class="radio_label">yes</label>
<br />
<input value="no" title="" class="radio" id="radio31" name="radio3" type="radio" />
<label for="radio31" class="radio_label">no</label>
<br />
</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_radiobutton">
<label class="cf_label" style="width: 300px;">DISPLAY ARTIST STATEMENT</label>
<div class="float_left">
<input value="yes" title="" class="radio" id="radio40" name="radio4" type="radio" />
<label for="radio40" class="radio_label">yes</label>
<br />
<input value="no" title="" class="radio" id="radio41" name="radio4" type="radio" />
<label for="radio41" class="radio_label">no</label>
<br />
</div>
</div>
<div class="cfclear"> </div>
</div>
<input type ="hidden" name="cf_id">
<div class="form_item">
<div class="form_element cf_button">
<input value="Submit" name="button_5" type="submit" />
</div>
<div class="cfclear"> </div>
</div>
I've got the profile plugin checked for this form and enabled within the form.
Here's a screenshot of the params for the plugin
[attachment=0]params.PNG[/attachment]
I'm sure I'm missing something - a bit confused about the 'Request' parameter name - and can't find any examples on how to use it.
Thanx for your help
Mark
So I realize that radio buttons make things more complicated, so I changed my code to this:
here are my settings for the plugin:
[attachment=0]params.PNG[/attachment]
Here's the url I'm using to access the page
http://www.tantomedia.com/parfait/index.php?option=com_chronocontact&chronoformname=settings_test&cf_id=1
Still can't get it to work - It will update the table, but with a new entry...
I'm sure I'm missing something simple
Thanx again for your help
Mark
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Click Me to Edit</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="text_0" name="text_0" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Click Me to Edit</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="text_1" name="text_1" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_button">
<input value="Submit" name="button_2" type="submit" />
</div>
<div class="cfclear"> </div>
</div>
<input type ="hidden" name="cf_id">
here are my settings for the plugin:
[attachment=0]params.PNG[/attachment]
Here's the url I'm using to access the page
http://www.tantomedia.com/parfait/index.php?option=com_chronocontact&chronoformname=settings_test&cf_id=1
Still can't get it to work - It will update the table, but with a new entry...
I'm sure I'm missing something simple
Thanx again for your help
Mark
Got it,
The Chronoforms book has this for the hidden input:
I used this and it works:
When I changed the 'Request' parameter name from "cf_id=1" to "cf_id"
I might still be doing something wrong and accidentally stumbled on a solution....
The Chronoforms book has this for the hidden input:
<input type ="hidden" name="cf_id">
I used this and it works:
<input type ="hidden" name="cf_id" value={cf_id}>
When I changed the 'Request' parameter name from "cf_id=1" to "cf_id"
I might still be doing something wrong and accidentally stumbled on a solution....
This topic is locked and no more replies can be posted.