• Resolved smangas

    (@smangas)


    I need to be able to work with a hidden field that has a different value, depending on whether the group is active or not.
    Something like that:
    [group tran clear_on_hide]5,00 € [hidden tran “5”][/group]
    [group tran0 clear_on_hide]FREE [hidden tran “0”][/group]

    This is possible?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    If you need the hidden fields to have the same name, you can only do it with disable_on_hide https://conditional-fields-cf7.bdwm.be/disable_on_hide/, available in conditional fields Pro.

    Thread Starter smangas

    (@smangas)

    Thanks Jules

    But if I put the following:
    [group tran clear_on_hide]5,00 € [hidden tran “5”][/group]
    [group tran0 clear_on_hide]FREE[/group]

    The value of the hidden field is still 5 and not 0 when the group is not active.

    • This reply was modified 1 year, 7 months ago by smangas.
    Plugin Author Jules Colle

    (@jules-colle)

    You need disable_on_hide, not clear_on_hide.

    Your code should probably look like this:

    [group tran disable_on_hide]
      5,00 € [hidden tran "5"]
    [/group]
    [group tran0 disable_on_hide]
      FREE [hidden tran "0"]
    [/group]
    • This reply was modified 1 year, 7 months ago by Jules Colle.
    Thread Starter smangas

    (@smangas)

    Thanks Jules
    I talk to my client to try the Pro version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hidden field’ is closed to new replies.