AEM6.0 Adaptive Forms as a component - aem

Has anyone successfully created an Adaptive Form as a component that can go into an AEM page? OOTB, the form is its own page template. Wondering if any Ninjas have accomplished this!

So we ended up creating a container component, with a configurable path to include the Adaptive form you want on the page.
<div>
<cq:include path="${properties.path}/jcr:content/guideContainer" resourceType="fd/af/components/guideContainer"/>
</div>
We also created a custom form page and template styled to work within the component and subsequent page.

Related

How include a custom form to be render in a Modal

Hello I'm trying to include in a modal a custom form (is not a BizKentico Form) when it is rendered the tag <form> is missing and when click submit buttom it realod the page and lose de input data before.
Are you using Portal engine or MVC?
If you are using Portal, Kentico wraps the entire page in a form tag. You can hack it buy doing something like this, but it may cause some issues on the page.
</form>
<form>
your form data
</form>
<form>

Kentico and add Form that posts to external source

I want to create a Salesforce Web to Case from on my Kentico Site.
I have a template built and am inheriting the from that.
I create a new page and then add my form code to the Page Tab > Source and Save.
When I load the page on my site, the form is displayed, but when I hit submit, the form does not do the post action.
How do I accomplish this?
TIA, Jason
Since Kentico is built on web forms, each page's content is wrapped inside a form tag.
Adding your markup (including a form tag) in the middle of a Kentico page results in a nested form, which is invalid.
The quickest way to make this work is probably:
Create a basic HTML document with your markup, and put it on a new page in a "Custom Response" web part. https://www.screencast.com/t/PuwwnFTGGpAJ
Then display that new document in an iframe on your current page.
If that won't work, you can put your form markup in a div hidden by CSS. Then use javascript to move the div to a location after the page's main form tag. You can then use CSS to absolutely position the form on the page.
I hope this is helpful, good luck.

Sitecore third party form inside the sitecore form

Looking for a way to incorporate a third party form (not a sitecore form) into a sitecore layout.
I suspect it is not working because of the outer sitecore form tag (the one that wraps all content). Problems due to nested form tags (not good).
<div><form id="non-sitecore" action="http://third_party.search.com/" method="POST">
<input ...>...
</form></div>
What is the best way to get this type of third party form to work?
Nate,
Your issues isn't specific to Sitecore as it pertains to general ASP.NET web forms as well.
Any easy solution would be to create a page (.html/.aspx/etc...) that has what you need on it. i.e.
<div><form id="non-sitecore" action="http://third_party.search.com/" method="POST">
<input ...>...
</form></div>
Then, use an iFrame on your layout/sublayout to bring in your 3rd party 'stuff' that exists on the page you created.
Best way to render form inside layout render is in Iframe

Joomla 1.5 Side Bar Navigation Menu Showing Current Page Possible?

So I am working on Joomla 1.5 and retro fitting an existing website to work with this CMS. I've got most of the templates down and I have created Modules for Side navigation on the internal pages. However, on the original website, php in clauses are used to change the class of the link to show the current page the visitor was on (e.g
<a <?php if ($page=="career_opportunities") echo "class=\"currentpage\""; ?> href="?page=career_opportunities">Career Opportunities</a><br/>
<a <?php if ($page=="locations") echo "class=\"currentpage\""; ?> href="?page=locations">Practice Locations</a>
</div>
is it possible for me to maintain this structure in the new side navigation menu I created in joomla? Do I have to make it HTML customized type Module? Do I need to find a way to capture the current page's ID? Where should I begin?
Thank you in advance
You can do it by using css also which will be much easy for you to handle this using css.

Submit multiple forms to various iFrames

due to security and implementation reasons that are out of the scope of this post, I need to submit multiple forms in a single page to different iFrames (one iFrame for each form). I can't use jQuery nor AJAX, it has to be done via:
<script>
document.Form1.submit();
</script>
The problem is, after I submit the first form (everything goes well), I can't submit the other three forms. I'm guessing only one form.submit() call is allowed per page. Is there a way around this?? I have no problem with submitting all the forms at the same time.
Ps: I'm forwarding the post request to the iframe using the target param of the form. Like this:
<form id='Form1' name='Form1' action='https://www.xxx.com/index.php' method='post' target='iFrame1'>
Thanks a lot in advance for your time and help. Best regards,
You can also have multiple forms and have each form submit to a separate iFrame.