FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



May 8, 2013, 10:34 AM
90 Posts

Re: Hide when

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 4
Thanks Baxter, that got me thinking. I modified a bit what you suggested, as ... if the document was not in edit mode -- then that needed to override the status check, rather than be equal to it as an OR.

 here's my hidewhen that is working. if doc isn't in edit mode, then don't render this element visible. if it is in edit mode, and the status field is not set to final, then do render this element visible. Otherwise, don't render it visible.

Probably really wordy coding, but it's working, for the sake of others who are desperate:

        var show = "";
        if (!Submission.isEditable()) {show = "No"}
        else if (Submission.getItemValueString('Status')!='Final') { show = "Yes"}
        show == "Yes";  

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.