How can we change the redirect_url for a redirect action based on the response from an API? I have created a custom action (extending NF_Abstracts_Action ) that runs during submission with late timing and calls an external API. Based on that response I want to change the page being redirected to. I cam get the actions with NinjaForms()->form(2)->get_actions(), but changing the redirect_url of the redirect action in that array doesn’t alter the current flow. Alternatively how can I send a …
have a WordPress site. There is a form on the product card, when filled in, the data is sent to the mail. It has hidden fields, how can I add the value for these hidden fields, which is stored in my variable? For example the key of my field: hidden_price And there is such a code, but I do not understand how to do it. add_filter( 'ninja_forms_render_default_value', 'my_change_nf_default_value', 10, 3 ); function my_change_nf_default_value( $default_value, $field_type, $field_settings ) { if( 'textbox' …
I have a wordpress website selling products. On the product page there is a button “Ask a question”, through which a pop-up form created on the basis of the “Ninja forms” plugin opens. There are fields for input, when they are filled in, a letter is sent to the mail. But the customer wants the attributes of the product (size, material, etc.), through which the user asks the question, to come as well. Attributes are displayed on the product page …
I am rendering Ninja Forms dynamically. By dynamically I mean the shortcode is coming from an ACF field, so at different pages, there would be different forms or multiple different/same forms on the same page. So it is like: if ($nf_shortcode && $a_condtion){ echo do_shortcode($nf_shortcode); //Render Ninja Form } What I am looking for is that when this Ninja Form is rendered, there is a new field or settings or anything attached to this form with a value from another …
I have a form set up through Ninja Forms and the PayPal Express extension. I'm currently testing the form and all works as expected (on submit the user is redirected to the PayPal payment portal, payment is processed successfully and it shows up in my PayPal sandbox account). However, the amount the user has to pay when they reach the PalPal payment portal is in USD, but I would like it to be in GBP. Is there a way to …
There's a conflict when using Pods, Elementor, and Ninja Forms together. This is a known issue by Ninja but the other players are uncooperative and Ninja is still a little ways out on a real fix. The conflict manifests by displaying a blank page when trying to edit a Ninja Form. At least in theory, if I can just disable the functionality of Pods or Elementor while I'm editing forms, I should be fine. I've attempted to deactivate_plugins on admin_init …
We have a contact form on our website and we want to allow user to upload pdf file. We would like to uploaded file to be in turn uploaded to our nextcloud system. Could anyone please tell me if such a plugin exist or any other way to achieve this? We found https://wpfilebase.com but the developper is nowere to be found so buying it is not really an option. Thank all
If have a page where you can select a specific broker from a list. The broker name has to be filled in into the hidden field in Ninja Forms. if(jQuery('#broker-list').length) { //checks if the list exists jQuery(document).on( 'nfFormReady', function( e, layoutView ) { var broker_name = ""; jQuery(document).on("click", ".broker" , function() { broker_name = jQuery('.broker__name', this).text(); console.log(broker_name); // this works perfectly if(jQuery('#nf-field-33').length) { jQuery(this).val(broker_name); //value of field is still empty } if(jQuery('#nf-field-34').length) { jQuery(this).val(broker_name); //value of field is still empty …
I'm using the NinjaForms plugin which defines a Ninja_Forms() global function. Although I can call it without problem, I still get a warning/error Undefined function 'Ninja_Forms'. If this were a variable I'd use global foo to suppress that. How do I do that for a global function - i.e. is there a global equivalent for functions?
I want to render a ninja form via markup (in a php file): <div> <h1>hello</h1> <ninja-form> <---- ? </div> What do i put in there to render a particular ninja form?
So I am trying to get which option is selected without submitting it to server side. I have 2 drop down fields, the first one is of last names and second one is of first names. Both are populated from a Google Sheet. E.g. If user selects the Last name "Doe" then the second dropdown automatically searches for all names ending with last name "Doe" and populates second dropdown with the corresponding first names. I am using Ninja Forms and …
I use ninja forms for a registration of an event. In the success message and in the confirmation mail, I want to show all the data entered by the users. Ninja form has an filter called {fields_table}. But, I dont know how to style this using css or in other words, can I add a css class for this filter? If yes, how to do that?
I'm new to asking questions here, so any help would be appreciated. I'm managing a Wordpress website for an organization that is going to have an upcoming election of board members and they'd like to do it online using a form. They currently use Ninja Forms. In order to verify each form submission they want to see if it is possible to only accept forms after the person enters a serial number that will be assigned to them, or possibly …
I'm having a problem with custom form field validation. I have installed Ninja form 3 in the latest wp-install. The problem is that I am not clear on which hook to use. I have looked at the documentation on their site and tried several thing but no results. Here's what I'm trying to do: there is a field in the form where the user must give his member-id that value. I want to compare with data from a second database …
My objective is to use Ninja Form for data collection at various places all over my website. But once that data is collected, depending on which form it came from and what data has been filled, I want to filter and store it in custom database tables. Any help would be greatly appreciated. Thank You.
I'm trying to source documentation on how to create a unique identifier that can be displayed to the user after form submission and to the admin that also receives the submission. User submits form User receives confirmation email with "Your code is 2290" Admin receives form confirmation "User has signed up with order X and code 2290" I've found a way to grab sequential numbering from the order of submission but it needs to be a unique code to that …
I've added a custom page template where I pull out a list of available jobs from the database. The page displaying the jobs is called jobs. I'm using the Ninja forms plugin to add a form on a page called apply.php, which has fields for a job application. Now for each job title offered on the jobs page, I want it to be a link that the user can click on to apply, and be redirected to apply.php, where I …
I'm building a site in Wordpress and using the Ninja Forms plugin. While developing locally everything worked perfectly but now I've installed on my server When trying to submit a form I'm getting the following error and the form just stalls: "NetworkError: 500 Internal Server Error - http://319433-1.temp-dns.com/wp-admin/admin-ajax.php" admin-ajax.php ERRORS: Internal Server Error front-end.js (line 2) Object { readyState=4, status=500, statusText="Internal Server Error", more...} front-end.js (line 2) Parse Error I have turned on DEBUG mode in Wordpress but that gave …
I have a ninja form that redirects to a thank you page. I am trying to process the values submitted in the form to display different content on the thank you page. I have achieved this in Ninja Forms 2 using the following code, but it doesn't work in Ninja Forms 3. And I can't work out what to do with their example code given here http://docs.ninjaforms.com/customer/portal/articles/1981022-actions-methods-processing-ninja_forms_post_process. Here is what I have successfully used in Ninja forms 2. $form_id ='11'; …
I cannot figure out why Ninja Forms is throwing this error. Documentation does not have anything available on this error. If I am making a form, and the field key is firstname, this error will come up and say it's not found when I go to publish it, and it corrupts my form. Unknown Field type "" not found. Any advice would be great. Thank you!