I have a work order form setup in ChronoformsV6 that allows users to submit requested work. I use a form in ConnectivityV6 to edit the information that user submitted so the order can be assigned to employees, status updates, etc. Once I have that information edited I need to be able to send the page containing the information to a printer so the page can be handed out to the employee. So far I cannot figure out how to add something like the code below without getting an error 404 in my admin console:
<a href="#" onclick="window.print();return false;">Print this page</a>Can anyone please help? I've searched and searched and I help is what I need!
What I am trying to do should be done in Chronoforms and not in Connectivity?
You can do pretty much anything from CF in CC and vice versa.
And this where I am stuck. I just cannot wrap my mind around how to make this work in ConnectivityV6. If you have a way, please share!
Create a HTML view with the code Bob supplied, let's call this "print_link"
In your index event (or whatever event you want it shown in), in the place you want it shown, call the view with {view:print_link}
In your index event (or whatever event you want it shown in), in the place you want it shown, call the view with {view:print_link}
I cannot get the code in the FAQ's to work in CCV6, o be sure there is an easier way. Adding code from "Code for ChronoForms v4 using MooTools" section throws a 404 and adding code from "Code for ChronoForms v5 using jQuery" has no effect, nothing is displayed. Is there another way around this?
I put that code that YOU provided on my connection and it worked instantly. What's the problem exactly?
Don't event need to put it in a view, just put it straight into the event

ODD! Each time I save my connection with the simple print code I provided my site throws a 404 error.

Both CF and CC are V6 and both are validated on my domain.


Both CF and CC are V6 and both are validated on my domain.
Check your server's mod_security settings, it's probably filtering out a certain string and breaking it.
Could it be that? I can save the print code above anywhere else in the site (except CF and CC) without error.
That EXACT thing has happened to me multiple times so yes : check mod_security or the logs for same. NOT PHP error logs, but actual SERVER logs.
I removed onclick from the code and I can save without getting a 404 and the print link shows up. But without onclick the link does not work. How do I allow that?
I just told you.
Request:
POST /administrator/index.php?option=com_chronoconnectivity6&cont=connections&act=edit
Action Description:
Access denied with code 403 (phase 2).
Justification:
Pattern match "(?:< ?script|(?:<|< ?/)(?:(?:java|vb)script|about|applet|activex|chrome)|\\%env|< ?i?frame ?src ?= ?(?:ogg|gopher|data|php|zlib|(?:ht|f)tps?):/|(?:\\.add|\\@)import |asfunction\\:|background-image\\:|e(?:cma|xec)script|\\.fromcharcode|get(?:parentfolde ..." at ARGS:_formchunks[0].
***************************
This is what I see in ModSecurity Tools. I am assuming that when I save the print code in CF or CC that it is creating a pattern that matches a rule. If I update/change a rule am I allowing more vulnerabilities?
POST /administrator/index.php?option=com_chronoconnectivity6&cont=connections&act=edit
Action Description:
Access denied with code 403 (phase 2).
Justification:
Pattern match "(?:< ?script|(?:<|< ?/)(?:(?:java|vb)script|about|applet|activex|chrome)|\\%env|< ?i?frame ?src ?= ?(?:ogg|gopher|data|php|zlib|(?:ht|f)tps?):/|(?:\\.add|\\@)import |asfunction\\:|background-image\\:|e(?:cma|xec)script|\\.fromcharcode|get(?:parentfolde ..." at ARGS:_formchunks[0].
***************************
This is what I see in ModSecurity Tools. I am assuming that when I save the print code in CF or CC that it is creating a pattern that matches a rule. If I update/change a rule am I allowing more vulnerabilities?
No idea sorry. Maybe? Don't think so though should be fine.
Rather than modding the rules, etc, I updated the views table in MYSQL by placing the code there and saved it. The print link works now. Thanks for the help healyhatman
This topic is locked and no more replies can be posted.