Edit fields in student application form

Hello,
How do I edit/remove fields from the student application form? I tried from the user admin but unable to find full edit options.

Comments

  • Hi Mohit, welcome to the Gibbon community!

    Many of the options for the application form can be found in User Admin > Application Form Settings, as well as Manage User Settings/Custom Fields for adjusting some of the language, residency and privacy options. There isn't an option to edit every single application form field, but there are various toggles to turn things off and add fields. Otherwise, what kinds of fields on the application were you looking to edit or remove?
  • Thanks Sandra.

    I am new to the Gibbon platform. Just installed yesterday and have been watching all the videos and have read up almost all the documentation and forums. Yes I did try User Admin > Application Form Settings. I wanted to hide a few fields such as the following:

    1. Preferred name and official name (First and Surname would suffice)
    2. Name in Characters
    2. India Residency/Visa Type
    3. India Visa Expiry Date

    I read in one of your replies from November, that I might need to hide them from CSS.
  • Hello Everyone.
    I'm new here, and trying joining this topic.

    I'm a Teacher in a Gifted School, in Israel, and for that reasons, our requirements from the Application form are mostly different.
    I tried to delete fields from - 'modules\Students\applicationForm.php' and after i failed to do it to a 'Required fields', i understood i need the change the database - or something like that.

    Maybe it's the wrong category to ask this question, if so, please call it, and i will post a new topic.
    My request is in guidance how to change or delete 'Required fields'.

    Thanks in advanced
    Yoni
  • Hi Yoni, welcome to the Gibbon community :smiley:

    In User Admin > Application Form Settings you'll find a number of settings for disabling various fields, this doesn't cover all the fields as you've likely discovered, but its the best place to start.

    From there, if you're keen to dive into the code to edit the application form, here's a few pointers:
    - After the application on 'modules\Students\applicationForm.php' is submitted, it goes to an 'applicationFormProcess.php' page. If you're deleting fields from the form, it's likely to cause problems in this process page.
    - Rather than deleting (or un-requiring) a field, you can replace it with a hidden field that fills something like 'N/A' into the field in the background. This could let you remove and tweak the front-end of the application without breaking the back-end.
    - For example, if I wanted to remove the following required field:
    $row = $form->addRow();
           $row->addLabel('countryOfBirth', __('Country of Birth'));
           $row->addSelectCountry('countryOfBirth')->isRequired();
    I could try replacing it with a hidden field of the same name and a generic value:
    $form->addHiddenValue('countryOfBirth', 'N/A');
    - If you're familiar with GitHub, it helps to fork the Gibbon core repository so that you can track your changes in your own branch and merge them back in after a new version is released. Otherwise, be sure to keep track of any files you change as they will be overwritten when updating Gibbon.

    Hope this helps! Give a shout with any questions. The application form is certainly one of the most complicated forms in Gibbon as well, so if you're keen to make changes it helps to make one small change at a time and test it after each change.
    admin
  • Hello Gibbon-Team, Gibbon-Commuinty,

    Happy new Year! :)
    I could need some assistance.

    I have created a new field in the student application form but cant create a Student with it. I always get the same error message: "Your request failes due to a database error."

    First, i created the field "test" in applicationForm:


    Then i edited applicationFormProcess:



    I created "test" in the table gibbonPerson:


    Did i miss something?

    Thanks!
  • Hi ub123,

    The fields for an application are first saved in the gibbonApplicationForm table, so be sure to add your field to this table, then you'd need to update the Edit Application Form page to also add this field, and the Accept Application Form action to convert the gibbonApplicationForm field into a gibbonPerson field.

    This can be a bit tricky to edit, and each time you update Gibbon your changes will be overwritten. Luckily Gibbon does come with a Custom Field option to add your own fields to the user and application data without needing to edit the code. This can be found in User Admin > Manage Custom Fields.

    Hope this helps!
    ub123
  • Everything is working now - Thank you Sandra!
    meierromadminsandra
  • Hello Team,

    I know this is an old post but one quick question, does the above edit allow changing all fields in the Application form. Because I have done several changes and it looks pretty fine from the front end but submitting the form shows invalid inputs. I suspect the entry 'N/A' in $form-->addHiddenValue('.........', 'N/A'); does not apply to some fields but couldn't figure out.

    or is there restriction to specific entries.

    Kindly help.
  • Hi Kelvin,

    any examples which fields / values you mean? :)
  • Hi @ub123
    I managed to edit as below and the fields are hidden very well though invalid input in submission and the form does not show where validation was wrong.

    for basic info: Surname and official name
    >>everything else hidden,

    for for details about language preference >>hidden

    for details about passport/visa and citizenship >> hidden
    the rest of the info is needed

    I understand some of these details are very important to some institution but also not necessary to other institutions.


    Thanks.
  • Hi Kelvin, we've recently been discussing a flexible field system for the student application form, and although it might not arrive until v23, we hope that it will address this long-standing question! Cheers, Ross.
    kelvinmwmeierrom
  • Hi Kelvin,

    i used "N/A" for the most fields with a few exceptions:

    languagefields -> used default language
    datefields -> yyyy-mm-dd format default value
    sen -> Y or N default value

    Hope this is helpful.
    kelvinmw
Sign In or Register to comment.