Forums

CF5 Form to Edit DAta from CC5

tshirley 03 Dec, 2014
Hi there,

I am trying to get a Chronoforms V5 form to edit a record selected from a Chronoconnectivity V5 list.

I followed the FAQ tutorial for this and it all seemed OK - the edit form was displayed - but the selected record data was not displayed in the form. It was just an empty record. I did see that the record id was passed to the form with a parameter as:

.....component/com_chronoconnectivity5/act,edit/ccname,MbrOpsReportList/cont,lists/&gcb=85

I then had a closer look and noticed that the FAQ did not specify that the Edit form required a DBRead Action on the OnLoad.

So I put one in, but then didn't know how to reference the &gcb token in the conditions.

Can someone get me over this last hurdle please?
GreyHead 03 Dec, 2014
Hi Tim,

I don't believe that you need a DB Read action. The problem may be with the SEF URL, please test with a non-SEF version. or just try replacing the & with a ? and see if that works OK.

Bob
tshirley 03 Dec, 2014
Thanks..

OK but how do i make that happen? I am just using the product out of the box there is no code anywhere.. is there a setting for this?

Sorry it is a fundamental question I know.
GreyHead 03 Dec, 2014
Hi Tim,

The clean URL will be something like this
index.php?option=com_chronoconnectivity5&act=edit&ccname=MbrOpsReportList&cont=lists&gcb=85
Or just turn off whatever is creating the SEF URLs.

Bob
tshirley 03 Dec, 2014
Hi Bob,

Well that worked, thank you. There was a component sh404SEF in the site that was doing it. I disabled that and all is well.

It still isn't clear what causes the edit to take place, since there is nothing in the "on load" of the form.. but if it works, maybe I don't need to know!

Now I just have to figure out how to make an exception since I am sure we want to have the SEF enabled in general.

Thanks again for your help.
GreyHead 04 Dec, 2014
Hi Tim,

I think that you can turn sh404SEF back on if you then set it to ignore ChronoForms URLs - from memory the setting is in Configuration | Components.

Bob
This topic is locked and no more replies can be posted.