Hi Max & Bob,
I am wanting to pass the id paramater of a record to a url in order to have a link which will open an edit form in a modal window from a CC5 view. I am struggling to pass the id paramater into the html code. The lines below are what I have tried.
I have also tried doing it with {job_view.id} as well directly in the html but that also doesn't parse.
Is there a way to use the form event directly in the view to generate the link? my event is R1_Form:load
Any hints on where I am going wrong?
The project details are I use a single form which is used to populate the db I then use CC to display the record, There are then 4 areas on the CC view that I require to put links for the edit forms, depending on who is logged on it depends on what they can edit.
This means there are an additional 4 edit forms which depending on which edit link is visible depending on the edit form they are presented with. This means they only edit the data that they need to be able to.
I can almost see the light at the end of the project....
Regards,
Dave
I am wanting to pass the id paramater of a record to a url in order to have a link which will open an edit form in a modal window from a CC5 view. I am struggling to pass the id paramater into the html code. The lines below are what I have tried.
<?php
$id = ['job_view']['id'];
?>
<a href="/jobs/new-job-data?cont=lists&ccname=JobView&act=edit&gcb=<?php echo $id; ?>" >
I have also tried doing it with {job_view.id} as well directly in the html but that also doesn't parse.
Is there a way to use the form event directly in the view to generate the link? my event is R1_Form:load
Any hints on where I am going wrong?
The project details are I use a single form which is used to populate the db I then use CC to display the record, There are then 4 areas on the CC view that I require to put links for the edit forms, depending on who is logged on it depends on what they can edit.
This means there are an additional 4 edit forms which depending on which edit link is visible depending on the edit form they are presented with. This means they only edit the data that they need to be able to.
I can almost see the light at the end of the project....
Regards,
Dave