Hi
Is there a way to do this:
I create a link in article, say "order".
When visitor click on that link, goes to form page. In that form must be field with allready populated value article title.
If its possible to open that form in jquery slimbox is bonus.
Is there a way to do this:
I create a link in article, say "order".
When visitor click on that link, goes to form page. In that form must be field with allready populated value article title.
If its possible to open that form in jquery slimbox is bonus.
I found https://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2631-how-can-i-get-information-about-the-current-page.html for form in article via plugin. But i need to pass article title or url via link.
Hi maxslo,
If you are using a link in an article the simplest solution is to add the article title (or its ID) to the URL.
I don't know the slimbox syntax but is you add the modal code to the link and add &tmpl=component to the URL then the form should open in the modal window.
Bob
If you are using a link in an article the simplest solution is to add the article title (or its ID) to the URL.
I don't know the slimbox syntax but is you add the modal code to the link and add &tmpl=component to the URL then the form should open in the modal window.
Bob
Can you give me an example of link and how to make field for that in the form.
form link (copied from the view form in the forms manager) + "&field_name=value"
e.g:
Regards,
Max
e.g:
index.php?option=com_chronoforms5&chronoform=demo-autocompleter&field_name=value
Regards,
Max
Thanks, that worked. So simple.
Is posible with SEF url?
For example domain.com/formname/....
Is posible with SEF url?
For example domain.com/formname/....
If you have SEF enabled then it should convert it automatically I think, but if it doesn't then you can use SEF url and append the parameter.
Hi maxslo,
It may work with an SEF URL but how is that useful - the link URL isn't visible until after it is clicked, then it may automatically be converted to an SEF URL.
Bob
It may work with an SEF URL but how is that useful - the link URL isn't visible until after it is clicked, then it may automatically be converted to an SEF URL.
Bob
I miss one part of url.
Must be domain.com/sefalias/Formname&field_name=value
Thank you. Case solved.
Must be domain.com/sefalias/Formname&field_name=value
Thank you. Case solved.
Said to soon.
With sef url is not working.
Field value is not populated with sef url.
With sef url is not working.
Field value is not populated with sef url.
Please try to use "?" instead of "&" before the parameter name if its the only passed parameter in the URL
Hi Maxslo,
The query string part of a URL always starts with a ? so it looks like ?var_a=value&var_2=another_value& . . .
Why do you need an SEF URL for a link like this?
Bob
The query string part of a URL always starts with a ? so it looks like ?var_a=value&var_2=another_value& . . .
Why do you need an SEF URL for a link like this?
Bob
This topic is locked and no more replies can be posted.