Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bakkbone/abn-lookup-for-gravity-forms
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.1.2
Choose a base ref
...
head repository: bakkbone/abn-lookup-for-gravity-forms
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 5 commits
  • 59 files changed
  • 2 contributors

Commits on Mar 9, 2024

  1. Create README.md

    bakkbone authored Mar 9, 2024
    Copy the full SHA
    784aaa4 View commit details

Commits on Nov 13, 2024

  1. Copy the full SHA
    a1ca7d9 View commit details
  2. Tweak readmes

    bakkbone committed Nov 13, 2024
    Copy the full SHA
    fa834a6 View commit details

Commits on Nov 14, 2024

  1. * DEV: Add nonce check to ajax call

    * DEV: Fix typo in WP tested version headers
    * DEV: Move external service info from docs to readme as requested by WP.org
    bakkbone committed Nov 14, 2024
    Copy the full SHA
    e38fdc5 View commit details

Commits on Feb 13, 2025

  1. 2.3.0

    bakkbone committed Feb 13, 2025
    Copy the full SHA
    44f9c06 View commit details
Showing with 7,050 additions and 29 deletions.
  1. +3 −0 .idea/.gitignore
  2. +9 −0 .idea/abn-lookup-for-gravity-forms.iml
  3. +6 −0 .idea/misc.xml
  4. +8 −0 .idea/modules.xml
  5. +6 −0 .idea/vcs.xml
  6. +93 −0 README.md
  7. +264 −0 tags/2.2.0/abn-lookup-for-gravity-forms-addon.php
  8. +667 −0 tags/2.2.0/abn-lookup-for-gravity-forms-fields.php
  9. +232 −0 tags/2.2.0/abn-lookup-for-gravity-forms.php
  10. +41 −0 tags/2.2.0/css/abnlookup-style.css
  11. +1 −0 tags/2.2.0/css/abnlookup-style.min.css
  12. BIN tags/2.2.0/img/active.png
  13. BIN tags/2.2.0/img/cancelled.png
  14. BIN tags/2.2.0/img/error.png
  15. BIN tags/2.2.0/img/loading.gif
  16. +2 −0 tags/2.2.0/index.php
  17. +403 −0 tags/2.2.0/js/abnlookup-script-admin.js
  18. +1 −0 tags/2.2.0/js/abnlookup-script-admin.min.js
  19. +439 −0 tags/2.2.0/js/abnlookup-script.js
  20. +1 −0 tags/2.2.0/js/abnlookup-script.min.js
  21. +231 −0 tags/2.2.0/readme.txt
  22. +264 −0 tags/2.2.1/abn-lookup-for-gravity-forms-addon.php
  23. +668 −0 tags/2.2.1/abn-lookup-for-gravity-forms-fields.php
  24. +235 −0 tags/2.2.1/abn-lookup-for-gravity-forms.php
  25. +41 −0 tags/2.2.1/css/abnlookup-style.css
  26. +1 −0 tags/2.2.1/css/abnlookup-style.min.css
  27. BIN tags/2.2.1/img/active.png
  28. BIN tags/2.2.1/img/cancelled.png
  29. BIN tags/2.2.1/img/error.png
  30. BIN tags/2.2.1/img/loading.gif
  31. +2 −0 tags/2.2.1/index.php
  32. +403 −0 tags/2.2.1/js/abnlookup-script-admin.js
  33. +1 −0 tags/2.2.1/js/abnlookup-script-admin.min.js
  34. +439 −0 tags/2.2.1/js/abnlookup-script.js
  35. +1 −0 tags/2.2.1/js/abnlookup-script.min.js
  36. +238 −0 tags/2.2.1/readme.txt
  37. +265 −0 tags/2.3.0/abn-lookup-for-gravity-forms-addon.php
  38. +668 −0 tags/2.3.0/abn-lookup-for-gravity-forms-fields.php
  39. +236 −0 tags/2.3.0/abn-lookup-for-gravity-forms.php
  40. +41 −0 tags/2.3.0/css/abnlookup-style.css
  41. +1 −0 tags/2.3.0/css/abnlookup-style.min.css
  42. BIN tags/2.3.0/img/active.png
  43. BIN tags/2.3.0/img/cancelled.png
  44. BIN tags/2.3.0/img/error.png
  45. BIN tags/2.3.0/img/loading.gif
  46. +2 −0 tags/2.3.0/index.php
  47. +403 −0 tags/2.3.0/js/abnlookup-script-admin.js
  48. +1 −0 tags/2.3.0/js/abnlookup-script-admin.min.js
  49. +441 −0 tags/2.3.0/js/abnlookup-script.js
  50. +1 −0 tags/2.3.0/js/abnlookup-script.min.js
  51. +240 −0 tags/2.3.0/readme.txt
  52. +8 −5 trunk/abn-lookup-for-gravity-forms-addon.php
  53. +2 −1 trunk/abn-lookup-for-gravity-forms-fields.php
  54. +11 −7 trunk/abn-lookup-for-gravity-forms.php
  55. +11 −11 trunk/css/abnlookup-style.css
  56. +1 −1 trunk/css/abnlookup-style.min.css
  57. +3 −1 trunk/js/abnlookup-script.js
  58. +1 −1 trunk/js/abnlookup-script.min.js
  59. +14 −2 trunk/readme.txt
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/abn-lookup-for-gravity-forms.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

93 changes: 93 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
## Description

> This plugin is an add-on for the Gravity Forms plugin. If you don't yet own a license for Gravity Forms - <a href="https://rocketgenius.pxf.io/bakkbone" target="_blank">buy one now</a>! (affiliate link)
### What does this plugin do?

* connect your forms to the [Australian Business Register ABN Lookup tool](http://abr.business.gov.au "Australian Business Register website")
* verify the ABN status and entity details
* pre-fill ABN status, entity name, entity type, location, GST status, GST registered date, entity date, business names into form fields
* use conditional logic and validation to enforce which entities can complete your form

Includes an **easy to use settings page** that allows you to configure:

* enter your unique GUID (necessary to use the plugin features - provided by the Australian Business Register, see [web services registration](http://abr.business.gov.au/webservices.aspx "Australian Business Register web services registration website"))
* disable plugin CSS styles - allowing you to create your own styles
* customise error messages and prompts displayed to form users

> See a demo of this plugin at [staging.bkbn.au/abn-lookup-for-gravity-forms](https://staging.bkbn.au/abn-lookup-for-gravity-forms/ "Demonstration Site")
### Have a suggestion, comment or request?

Please leave a detailed message on the support tab.

### Let us know what you think

Please take the time to review the plugin. Your feedback is important and will help us understand the value of this plugin.

### Disclaimer

*Gravity Forms is a trademark of Rocketgenius, Inc.*

*This plugin is provided “as is” without warranty of any kind, expressed or implied. The author shall not be liable for any damages, including but not limited to, direct, indirect, special, incidental or consequential damages or losses that occur out of the use or inability to use the plugin.*

## Installation

### Install and configure the plugin

1. Install and activate the plugin.
1. Open the ABN Lookup for Gravity forms settings page (Gravity Forms -> Settings -> ABN Lookup menu) and enter your unique GUID (necessary to use the plugin features - provided by the Australian Business Register, see [web services registration](http://abr.business.gov.au/webservices.aspx "Australian Business Register web services registration website"))

### Create an ABN Lookup field

1. In your form add or edit a 'Single Line Text' field
1. In the field settings, place a tick next to the 'ABN Lookup field' option

### To pre-fill GST status from an ABN Lookup field

1. Add a 'Radio Buttons' field
1. Place a tick next to the 'GST results field' option
1. Using the 'Link ABN Lookup field' drop down select the ABN Lookup field to link to the field to

## Frequently Asked Questions

### How do I configure the plugin?

A range of options can be found under the Gravity Forms 'ABN Lookup' settings menu.

### How do I use the plugin?

1. Install and activate the plugin.
1. Open the ABN Lookup for Gravity forms settings page (Gravity Forms -> Settings -> ABN Lookup menu) and enter your unique GUID (necessary to use the plugin features - provided by the Australian Business Register, see [web services registration](http://abr.business.gov.au/webservices.aspx "Australian Business Register web services registration website"))
1. In your form add or edit a 'Single Line Text' field
1. In the field settings, place a tick next to the 'ABN Lookup field' option

To pre-fill GST status from an ABN Lookup field:

1. Add a 'Radio Buttons' field
1. Place a tick next to the 'GST results field' option
1. Using the 'Link ABN Lookup field' drop down select the ABN Lookup field to link to the field to

### How do I change the value attribute of the GST result field?

Two filters are available for customising the 'value' attribute for the GST result field:

itsg_gf_abnlookup_gst_value_yes

itsg_gf_abnlookup_gst_value_no

Example usage:

Please note: there appears to be an issue with returning a '0' value - so in this case return '00'.

`add_filter( 'itsg_gf_abnlookup_gst_value_yes', 'my_itsg_gf_abnlookup_gst_value_yes', 10, 2 );

function my_itsg_gf_abnlookup_gst_value_yes( $text_yes, $form_id ) {
return '10';
}

add_filter( 'itsg_gf_abnlookup_gst_value_no', 'my_itsg_gf_abnlookup_gst_value_no', 10, 2 );

function my_itsg_gf_abnlookup_gst_value_no( $text_no, $form_id ) {
return '00';
}`
Loading