is there possibility to disable a field beteween time specified in 2 date fields ? - InfoPath Dev
in

InfoPath Dev

is there possibility to disable a field beteween time specified in 2 date fields ?

Last post 07-17-2017 09:03 AM by Hilary Stoupa. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 07-11-2017 06:27 AM

    is there possibility to disable a field beteween time specified in 2 date fields ?

     Hello,

     

    I would like to disable a button between 2 dates specified in 2 date fields is it possible to create such a rule ? thank you,

    Adam

    Filed under:
  • 07-11-2017 07:41 AM In reply to

    Re: is there possibility to disable a field beteween time specified in 2 date fields ?

    I've attached a simple sample - right click the link to the file, save it locally, right click the saved file and select design to open in design mode. You may need additional logic if the first date could be greater than the second date, or if you want the button disabled if the fields are blank, but hopefully this gets you pointed in the right direction.
    Hilary Stoupa

  • 07-14-2017 02:13 AM In reply to

    Re: is there possibility to disable a field beteween time specified in 2 date fields ?

     Hello Hilary,

     

    Yes I saw your example but this works the way around one specific day today()

     

    How can I specify a period of time ?

    Thank you

  • 07-14-2017 07:44 AM In reply to

    Re: is there possibility to disable a field beteween time specified in 2 date fields ?

    Sorry, I don't understand. Given two dates, and wanting to disable something between them, don't you have to compare them to today to know if you are between the two dates?
    Hilary Stoupa

  • 07-17-2017 06:41 AM In reply to

    Re: is there possibility to disable a field beteween time specified in 2 date fields ?

     Hillary I'm sorry,

     

    I figured it out it's working perfect now :)

     

    I have done wrong signs and I when I drowed the tings on the paper I could notice it.

     

    Today =<  startdate

    or

    Today >= enddate

    I created a list with date fields and connecte it to my form so  it's easyly configurable by users.

    So it's perfect :)

     

    thank you again,

    Adam

     

  • 07-17-2017 09:03 AM In reply to

    Re: is there possibility to disable a field beteween time specified in 2 date fields ?

    Hooray! Glad you have it working. :)
    Hilary Stoupa

Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.