Help Formula - If checkbox is true date should be none/blank

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nishan Perera
    Active Community Member
    • Jan 2019
    • 348

    Help Formula - If checkbox is true date should be none/blank

    If have a below 2 new fields

    payment ready - type boolean
    payment ready date - date time


    for a example user update the "payment ready = true" and "ready date = 03/07/2020"

    I want to change the "payment ready date" to none if the "payment ready is = false"


    Code:
    string\substring(chequeReady) = 'True',
    chequeReadyDate = 'None';

    I tried this but no luck. Please advice.
    Cheers!
    Nishan.
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    Update: Check Maximus solution.


    You would need to use a if formula I believe;



    ifThen(CONDITION, CONSEQUENT)

    So something like this might work (have not test):

    Code:
    ifThen(chequeReady= "True", chequeReadyDate="")
    Last edited by esforim; 07-06-2020, 07:51 AM.

    Comment

    • Maximus
      Senior Member
      • Nov 2018
      • 2731

      #3
      Hy there,
      Use this:
      Code:
      ifThen(
          chequeReady == false,
          chequeReadyDate = null
      );

      Comment

      • Nishan Perera
        Active Community Member
        • Jan 2019
        • 348

        #4
        Originally posted by Maximus
        Hy there,
        Use this:
        Code:
        ifThen(
        chequeReady == false,
        chequeReadyDate = null
        );
        Hey max this works perfectly
        Cheers!
        Nishan.

        Comment

        Working...