Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-3548

Display non-tagged fields in enform add/create page

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Should have Should have
    • 1.56

      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

      https://speca.io/engagingnetworks/engaging-network-services?key=726cda99f0551ef286486bb847f5fb5d#process-a-page-request

      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
      }
      
      

            kdiamant Kyriakos diamantis (Inactive)
            mtemperm Marine Temperman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: