• I am trying to integrate the job board to my site, Jobs without multi-select fields are working but the jobs that have multi-select field are throwing error on submission.

    {“status”:422,”error”:”Invalid attributes: Multi-select answer is not an array”}

    above is the error I am getting in the console after submitting the job.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author brownbagmarketing

    (@brownbagmarketing)

    Is it rendering a select box or a list of radio buttons?

    If it’s a select box, can you inspect the code and to see if it’s properly adding the “multiple” attribute to the select box?

    Thread Starter akky777

    (@akky777)

    Yes, the select box is calling correctly on the page.

    <select name="question_15066172002[]" id="question_15066172002[]" title="How many years of experience do you have working in a product/technical role as a SaaS sales engineer or sales consultant?" required="true" multiple=""><option value="68473101002">0-1 year</option><option value="68473102002">2-3 years</option><option value="68473103002">4-5 years</option><option value="68473104002">6+ years</option></select>

    When I submit for, this is the result I get with error

    success success Array
    (
        [id] => 5632963002
        [mapped_url_token] => https://boards.greenhouse.io/dailypayinc/jobs/5632963002
        [first_name] => Akky
        [last_name] => Shah
        [email] => [email protected]
        [phone] => 1234567890
        [question_15066166002] => NA
        [question_15066167002] => NA
        [question_15066168002] => 12345
        [question_15066169002] => 1
        [question_15066170002] => No
        [question_15066171002] => Google
        [question_15066172002] => Array
            (
                [0] => 68473102002
                [1] => 68473103002
            )
    
        [resume] => CURLFile Object
            (
                [name] => /private/var/tmp/php1ZitdW
                [mime] => application/pdf
                [postname] => akky-test-again.pdf
            )
    
    )
    {"status":422,"error":"Invalid attributes: Multi-select answer is not an array"}
    	php version: 7.3.5
    	curl version: 7.54.0 
    #greenhouse-job-board_1 #apply_form
    Plugin Author brownbagmarketing

    (@brownbagmarketing)

    Hmmm…
    Do you have a link to the page I could take a look at?

    Looks like your multi-select is an array.

    [question_15066172002] => Array
            (
                [0] => 68473102002
                [1] => 68473103002
            )
    Thread Starter akky777

    (@akky777)

    Hey sure, I’ll provide my local link on which I am working.

    Page link to carrers

    Use credentials:
    username: connection
    password: smooth

    Click on the job named: “Sales Engineer (Remote)” under the customer success team department, that job has multiple select fields, you can also select another job named “Spanish/English Customer Support Agent (In-Office)” under External Operations which has more than one multiple Select.

    • This reply was modified 3 years ago by akky777. Reason: open link on new tab
    Plugin Author brownbagmarketing

    (@brownbagmarketing)

    The select seems to be formed correctly.

    The code snippet you posted in your original question seems to have the multi-select input values in an array.

    I went back to look at your example this morning and it’s no longer available.

    Thread Starter akky777

    (@akky777)

    My system got turned off that is why you were not able to see the site, I just turned it on, it should be good. Please try it now with the same credentials.

    Thread Starter akky777

    (@akky777)

    Hey @brownbagmarketing you can access the site again, my server is back up, please help me with the issue I need to fix it. Thank You

    Page link to carrers

    Use credentials:
    username: connection
    password: smooth

    • This reply was modified 3 years ago by akky777.
    • This reply was modified 3 years ago by akky777.
    Thread Starter akky777

    (@akky777)

    Hey, @brownbagmarketing please give me some solution for this issue, I need to get this fix it. This is the only issue that is holding us to push the careers page live. Thank You.

    • This reply was modified 3 years ago by akky777.
    Plugin Author brownbagmarketing

    (@brownbagmarketing)

    Right now I have no solution.

    The select looks to be correctly formed and rendered.

    Your error message snippet that you posted originally seems to indicate the question is being submitted as an Array.

    Where did that code snippet come from?

    Can you verify that the post does contain “question_15066172002” as an array?

    Have you reached out to Greenhouse to see if something different needs to happen for the submittal to the API?

    I can’t troubleshoot what happens in your backend, I can only see what happens client side.

    Thread Starter akky777

    (@akky777)

    Hey, @brownbagmarketing I have connected to greenhouse job board support and they are telling me that multi-select should submit the query like "question_111": ["999","888"]. and currently it is submitting like "question_111": {"0":"999", "1":"888"} which is not the correct data structure. They also refferred me to the link below Github Greenhouse-tools-php.

    Can you please check it and let me know if I can fix this issue?

    Thank You.

    Thread Starter akky777

    (@akky777)

    @brownbagmarketing WHy is the page loading really slow, Page load takes almost 30 seconds to load. Is there any solution for that?

    Thread Starter akky777

    (@akky777)

    Hey @brownbagmarketing How can i make an individual job page link, because current reffarral link and individual job link is not working.

    https://www.dailypay.com/jobs/?gh_jid=5666144002&gh_src=2d446d382us

    Above link should open a Senior Recruiter Job instead it just opens the https://www.dailypay.com/jobs page. Also when i click on any job the url changes to the job slug instead of job ID, how can i change the slug to id when job description opens?

    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Multi Value Multi Select Error on job submission’ is closed to new replies.