mente12 Posted July 27, 2015 Report Share Posted July 27, 2015 Intended action: Report form > Details area > HTML Block > Hide Submit button based on calculated fields Reasoning: Based on the calculated field I want to allow or not allow the user to submit data from the details form. Button does not hide, why? <script language="javascript"> var stat='[@calcfield:1]'; if (stat.length>0) { coauthor = stat; document.write(stat); document.getElementById("Submit").style.display = "none"; } </script> Possible solution? Should I have this on exit of the Results page instead? Quote Link to comment Share on other sites More sharing options...
Xiang Posted August 7, 2015 Report Share Posted August 7, 2015 Good morning Mente, How are you? I think, you can use the Id of the Update button (Mod0EditRecord) instead of "Submit": document.getElementById("Mod0EditRecord").style.display = "none"; And if you want to hide the button, it's better to place the code under the button - in the Footer of the DataPage. You can add the Header&Footer element, select the "Footer" element, click the "Source" button, and enter your code. Have a nice day! Quote Link to comment Share on other sites More sharing options...
Aurora Posted September 2, 2015 Report Share Posted September 2, 2015 Hello mente12 What do you meat " submit" on the details page? Details page has two buttons - Update and Back If you want to hide an Update button , you can use the following script : <SCRIPT LANGUAGE="JavaScript"> var stat='[@calcfield:1]'; if (stat.length>0) { document.getElementById("Mod0EditRecord").style.visibility = 'hidden'; } </script> "stat.length" means length of symbols in the calculated field. If you want to use value of calculated field, delete the ".lenth" from the script. I hope this helps Aurora Quote Link to comment Share on other sites More sharing options...
quinnygdn Posted September 16, 2016 Report Share Posted September 16, 2016 Can anyone advise if this is possible in the bulk update screen? I've tried the solution as is but it doesn't seem to hide the Update button Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.