Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/wy4tt34rp/ko-gf-submit-label/archive/refs/heads/codex%2Finitial-release.zipVersion 1.0.2. Author: KO, mailto:ko@velaagency.com.
[gravityform id="1" title="false" description="false" ajax="true" submit_text="Send Request"]
See readme.txt for installation, behavior, and compatibility limits.
Design
gform_shortcode_form changes completed output, so overrides never enter a shared form object or a request-wide label map. The HTML tokenizer limits changes to the matching form and submit element. A small subclass uses core's protected bookmark spans to insert transport or empty-button text without reserializing the surrounding form. Keep the parser regression suite in the release checks.
gform_ajax_submission_result reads the signed label carried by the submitted form. It verifies the signature and form ID before changing only form_markup or page_markup. Ordinary shortcode rendering never reads posted label state, so a submission cannot change another embed's label. Confirmation responses are untouched. No database writes or frontend assets are involved.
Tests
Download a WordPress distribution outside this repository, then run:
php tests/run.php /path/to/wordpress
This uses actual WordPress core functions without a database. Only the site salt is stubbed. Gravity Forms rendering and AJAX result structures are fixtures based on its hook contract; this is not a full Gravity Forms integration test. The repeated same-ID fixture checks label isolation only, not Gravity Forms support for duplicate DOM IDs.
The release ZIP includes only runtime PHP, readme, changelog and license. Tests and Git metadata stay in the source repository.