I used html to create a form for website but the form does not looks in right look - forms

I am trying to fix my form style
but it looks very different than normal form .
I used html to create a form but I do have problem styling the form .

Related

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.

Open generated PDF in new tab / window in perl

Please help. I want to open generated PDF in new window / Tab in perl.
User needs to fill the form like First Name,Last Name, Email in web page. The form contents will be filled in PDF using PDF generator. The PDF will be generate dynamically.
In my case,
There is no issue with PDF generation. The generated PDF opens in the same window. This should be open in new tab/ window.
I have tried with "_blank" in form level. The form have certain validations. So it's opening
in new tab when the form have validation errors.
The below the content type which i have used in the pdf page.
content_type : application/pdf
Content-Disposition : inline
If you set the target attribute of a HTML <form> element, the page resulting from the form submission will always displayed using that target. Having a form which either returns a HTML page on invalid input or a PDF is generally a bad idea.
IMO the following is a better solution also from a usability standpoint:
Don't set a target on your form.
If the form is submitted successfully, return a new HTML page in the same window.
Create a link or a form with hidden inputs on that page that contain the parameters entered before.
Name the link something like "Open PDF".
Point the link to your script which actually creates the PDF.
Make the link open in a new window.
Alternatively, you could implement a JavaScript-based solution, possibly using AJAX.

Symfony2 get search via forms and links

In Symfony 2 I tried to create a little search engine. The search consists of a form and some links (like facets on solr). I managed to set up the search form with form binding, creating special searchobject class in entitiess and all this via form post request. For purpose of saving previous searches I saved the complete search object in session serialized.
My question(s) would be:
How to use get requests with a form without outputting form name? Is using forms via get valid in Symfony 2? What is the best practice?
Many sites made with Symfony 2 I see are using www.url.com/search?q=thequery&param2=xxx.
If it's valid, how would I prefill the form? Are there some examples to look at?
(PS: if using the form the way it works now, the url stays the same eg. www.url.com/seach)
Just try to change you html form declaration to specify method="GET".
And that's all, you can create your form as usual. :)

Can you post fields from one form to another form using Webform in Drupal

I'm using Webform in Drupal to make this page:
http://www.stuffusell.co.uk/drupal-7.4/collection-form
I want to build another child form on the home page and submit all fields (two or three in total) from that form to the corresponding fields on the fuller parent form on the link above.
I'm hoping to do this using Drupal, Webform and any suitable plugins. Is this possible?
You may try to take a look at Prepopulate module.
It allows you to populate a form's fields passing the values in the url. You just have to create your home form with the good fields'names, form action to your webform and form method to "get".

Adding an HTML form into a page in Kooboo

I have Kooboo CMS. I want to add an HTML input form for submitting data. How do I add any HTML form to a Kooboo page?
I think it's easy. I think you need to:
create "Content type" for your form (like this
-http://wiki.kooboo.com/?wiki=Content_type_management)
create "Content folder" for this content type
(http://wiki.kooboo.com/?wiki=Folder_management)
create view and use code helper "Form" - "Add content" - you'll get
a html form template for add content, you need just to write a
content folder and fields from content type.
More about KooBoo CMS here and here