My client wants to use Gravity Forms to create forms - he is giving department managers access to the WordPress dashboard, then each manager will go in and create forms. No problem there.
But, the client has a special interface for end-users (members) that is OUTSIDE of WordPress. He would like to have the forms created using Gravity Forms to be displayed in this interface. I can create shortcode or use the function 'gravity_form()' to call the forms, but then they are always displayed with the WordPress headers/layout/etc.
Is there a way I can access and display JUST the form? (I've tried doing something similar to how the preview is displayed when you click the 'preview' option while creating the form. But, I get the 'this is a preview' message).
You might try the following add-on which generates an iframe you can use to display the form on pages outside WordPress:
Gravity Forms Iframe Add-on
The typical process to embed a Gravity Form on a site where the plugin isn't installed requires:
Developing a custom page template with necessary code to output form scripts and styles.
Creating a new page in WordPress.
Inserting the form shortcode in the new page.
Manually writing an iframe tag with the page permalink and giving it a static height.
With the Gravity Forms Iframe add-on, just enable a setting to allow the form to be embedded and copy the code snippet. That's it. As a bonus, the iframe automatically resizes whenever the form height changes -- for instance, when fields are shown or hidden due to conditional logic.
Related
I used the shortcode as prescribed by the plug-in, which is [contact-form-7 id=”601″ title=”Contact form 1″].
Instead of rendering the form, I only see the shortcode in Production. Seems like it should be simple but I can't get the form to render on the site.
Meanwhile, another plug-in, WP Forms, works.
I would like to use Contact Form 7 because it integrates with the WP theme (Folie) I installed.
the most likely issue is that you are inserting your shortcode using a page builder/bock editor and not using a shortcode widget to do so. Hence your page editor is re-formatting the shortcode and rendering it null.
Either insert your shortcode using the HTML editor or contact the help for your page builder/editor on how to insert shortcodes properly.
I've created a CRM system in PHP, which of course has it's own user login / admin area. Up until this point, the index page of the top level domain would take you to a login form which I've manually created - simple username, password, forgot password sort of setup. When the user clicks the login button, the information is sent via AJAX, PHP then processes it as necessary, returns a JSON response which tells the page what to do next - i.e. redirect to the admin page.
In short I'd like to replace the index page with an actual Wordpress website, and then have the login form somewhere within the website. I've purchase the BeTheme theme and have activated that inside Wordpress, and it's bundled with Muffin Builder. So far, I can see it's great for building brochure style websites but I can't seem to find anywhere the ability to add custom HTML. Well, if I do add HTML to a page then 'input' tags are automatically stripped.
So, what I'd like to do is have a website built in wordpress, but, somewhere on one of the pages be able to integrate my own login form which has absolutely nothing to do with inbuilt wordpress users. It uses an entirely different database on a different server. Is this possible?
I figured it out a different way. You can add custom HTML (including form elements) using the 'Custom HTML' widget under Appearance->Widgets. Then, in Muffin Builder for a specific page just add 'Sidebar Widget Item' under 'Add Item', and Voila, it drops it in the page according to the usual grid system.
JS functionality can be added using Scripts n Styles plugin.
Have to make something so anybody can add something in the form on the public site, then admin in admin panel will publish it. The post will be a custom type with custom fields and post thumbnail.
So like in a title. Is there a way to make it happen in WordPress?
Found function *wp_insert_post* but how to make it work for nonregistered users, also how to upload a picture and add it to post?
Ok, I found the way to do that.
Simply use 'Contact Form 7' and plugin 'Post My CF7 Form', create frontend form in CF7 and map it to custom post type. Needed to do some changes in code but works like charm.
For this, I would recommend a plugin called Formidable Pro. With formidable pro, you have the ability to put a front-end form on a website that allows users (logged in or not, depending on how it's setup) to create posts with form submissions.
In the form, you would add fields for all relevant parts of the post (custom fields, title, picture upload, body copy, etc...) then in the settings of the "make post" function in Formidable Pro, attach all the relevant fields to the post content areas (featured image, title, custom fields, etc...).
Formidable Pro can be purchased and downloaded via formidablepro.com (unfortunately the create post feature is a paid-only feature).
Here is their help desk article on creating posts from entries: https://formidableforms.com/knowledgebase/create-posts/
I am integrating squareup api in my wordpress woocommerce site I set SqPaymentForm in my plugin
But it only shows form labels not input fields. something like this:
I set it in my custom template it works fine but not in my plugin.
The issue is that your javascript is being fired before your plugin has rendered on the page. You can try loading your script in the footer with wp_enqueue_script('squareup-paymentform', 'https://js.squareup.com/v2/paymentform', array(), false, true) or call paymentform.build() after your page has loaded. Take a look here for more information: https://docs.connect.squareup.com/articles/adding-payment-form/#generatingpaymentform
I have a HTML form that user can interact with and insert the data to a database.
( One HTML form and about 3 pages .php )
I need to implement this form to a word press page.
I created a page in wordpress and it gives me a blank area to write my content but i don't know where i put my files.
so appreciate your support to help me , thanks .
Where you place your files depends greatly on the structure of your wordpress template. If you want to make a page that can be accessed via a url like "www.yourdomain.com/form", then you can make a "Page" in Wordpress (via the "Page" panel via the dashboard), and name it "Form" and then, in your form's HTML (or PHP) file, set your HTML up as a template using this syntax:
Put this at the very top of your PHP page that contains your form's HTML/PHP:
<?php
/*
Template Name: My Form Page
*/
The code comment above is something wordpress will look for exclusively, and tells the wordpress engine that this page (your form HTML) is now a template named 'My Form Page'. So now, in the Wordpress Page editor for your "Form" page, you can attach your new template to your newly-created "Form" page by selecting "My Form Page" from the Template Dropdown in the Page editor.
Here is a screenshot of what the "Template Dropdown" looks like (per the Wordpress documentation):
After you follow these steps, navigating to this page will reveal your form's HTML, instead of a blank page.
You should refer to the Wordpress documentation on Page Templates for more information:
Hope this helps!
There are a few ways to add custom behaviour to a WordPress installation. Either per Addon/Plugin or Template Logic or custom modifications. I would recommend that you read through the wordpress developer guidelines and write your php files as plugin.
After that hook your plugin to your desired destinations and do your whished actions.
See this link for writing your plugin: wordpress codex