This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Identify element_x fields


  1. Lobbyof
    Member

    Hi,

    Hopefully this is a quick question (I've tried googling but not no luck).

    I have a large form with multiple dropdowns, a lot of which are Yes/No questions.

    How do I find which field (question) equates to element_x in the sql table?

    I've printed off the ap_element_options table but that still helps, but I still can't identify which element_x relates to which Yes/No option?

    I presume its listed soimewhere?

    Posted 11 years ago #
  2. williamansley
    Member

    You can determine this by viewing the source code of your form's web page. Find the code that corresponds to each question and take note of the element id.

    Posted 11 years ago #
  3. Lobbyof
    Member

    Thanks, but where abouts is that in the machform files? My website points uses the following to display the form:

    <?php

    header("p3p: CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");
    session_start();

    require("/home/mydomain/public_html/machform/machform.php");

    $mf_param['form_id'] = 1002;
    $mf_param['base_path'] = 'http://mydomain.ie/machform/';
    $mf_param['show_border'] = true;
    display_machform($mf_param);

    ?>

    Posted 11 years ago #
  4. Lobbyof
    Member

    Did a workaround, I added an extra choice to each Yes/No Dropdown that was the name of the field - so when I queried the ap_element_options table I could easily identify which element_id was which!

    Once done, I removed the extra dropdown items.

    Paddy

    Posted 11 years ago #

RSS feed for this topic

Reply