Forums

Display all fields, but making only certain fields editable

eldywan 01 Apr, 2010
Hi there,
Thanks for a great product! I have successfully set up chronoconnectivity to display data in a table format from a database, and each row has an Edit record button.

When they click on Edit record, it goes to a copy of the original form that was used to populate the form. This is all working well.

However, I would like to display the original record (as it was filled in in the form) in its entirety but do not want certain fields to be editable (like the original registration numbers). Other fields (like phone number) should be editable.
Is there a way to make everything display, but only SOME of the fields editable?


Thanks in advance!
eldywan 01 Apr, 2010
Just figured it out..

In the form, for the ones I wanted to be display only, I just changed the input class into a label and put in {fieldname} to display the text. Pretty simple, actually.

Hope this helps someone else out there.

Thanks!
bneese 16 Aug, 2010
Can you give me an example of this? I am a little confused. Bascially I have 2 forms, one to enter data and the other to edit data. I have fields: Name, Address, Phone, Email, Zone, Topic, Description on the enter data form. Then I have the same fields above plus status and notes. When you edit the record I want to only have the ability to edit the status and notes, but just display the other info.

How do I make this display data from the DB:

<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text">Address</span> </div>
<div class="cfclear"> </div>
</div>
bneese 17 Aug, 2010
I could really use some help on this if anyone has a chance to let me know how...

Thanks!
bneese 17 Aug, 2010
Sorry if I am being a pain, but this is the last step I need to finish to turn the site live. Can you someone please give me some code example of how to make the data display but not editable?

Thanks!

I finally figured it out!

<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">{name}</label>
</div>
This topic is locked and no more replies can be posted.