Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    I guess that the field for selecting the type of printing is a DropDown, or Radio field, in whose case you simply should press the link in the choices’ definitions section, to create the dependencies, and select the field for the color printing as dependency of the color choice, and the field for black in the black choice.

    Thank you for using our plugin.

    Thread Starter Muhammad Sikander nasar

    (@muhammad-sikander-nasar)

    Hi,
    I do not have dropdown or radio field for category.I am getting category using php.This is the link of my form.

    There are two fields if the category is color then first field will hide and also remove require.

    Thanks

    Plugin Author codepeople

    (@codepeople)

    Hi,

    If you are selecting the category, from out of form, you can create a javascript variable in function to the category, for example:

    If the category is Color:

    <script>category='color';</script>

    If the category is black:

    <script>category='black';</script>

    and then, insert in your form a calculated field to use as auxiliary field, and tick the option to hide the field from the public form, because this field won’t be relevant in your interface.

    Assign to this field the equation:

    IF(color=='black', 0, 1)

    The calculated fields support dependencies, so, you simply should define the dependencies in the calculated field:

    if the value is equal to: 0, display the field for black color
    if the value is equal to: 1, display the field for black color

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide field and remove required’ is closed to new replies.