-
Task
-
Resolution: Fixed
-
Should have
-
4
-
Engaging Networks
-
Sprint #89
- Display non-tagged fields in enform add/create page
Available fields metabox
https://k8s.p4.greenpeace.org/en-test/wp-admin/post-new.php?post_type=p4en_form
Reverse filtering of non-tagged fields so they would be displayed in create/add enform page.
https://github.com/greenpeace/planet4-plugin-engagingnetworks/pull/103/commits/1d0989bb1fa06da1ec9f6df73375301d18cc4356#diff-b9cfff7d99d98631e4ab701131f58cceR64
- Create an enform page that contains a non-tagged field and test that the non-tagged field is submitted successfully to en api. If the field is not submitted adjust twig template and/or js accordingly.
According to the en api docs, it should be possible
Sample request/response:
POST https://www.e-activist.com/ens/service/page/100/process HTTP/1.1 ens-auth-token: f472b605-bae1-4e26-ad5b-829c91735f63 Content-Type: application/json { "standardFieldNames": true, "supporter": { "firstName": "Joe", "lastName": "Smith", "emailAddress": "joe.smith@noaddress.com", "NOT_TAGGED_1": "a generic field response" "questions": { "question.4512": "Y" } }, "trackingId": "fb111", "appealCode": "client appeal code", "txn1": "client-ext-ref-value1", "txn2": "client-ext-ref-value2" } HTTP/1.1 200 OK Content-Type: application/json { "id": 1231231, "status": "SUCCESS", "supporterEmailAddress": "joe.smith@noaddress.com", "supporterId": 2343122 }