Forum Discussion
2 Replies
- MarkShnier__You
Qrew Legend
Can you help us understand the use case. Those fields will only work in View mode, and not Grid Edit.
- NikhilPanchalQrew Member
Hi,
For example, below is the "Add More" button which is used to add relevant records in form edit mode.
My purpose is that user should not be able to use this button to add any relevant record in view mode.
Formula for rich text:
var text url = URLRoot() & "db/" & [_DBID_WHY_WHY_ANALYSIS] & "?a=API_GenAddRecordForm&_fid_15=" & URLEncode ([Record ID#])& "&_fid_18=" & URLEncode ([Related Incident])& "&z=" & Rurl(); var text Add ="<a class=\"Vibrant Success OpenAsPopup\" style=\"width:120px; text-align: center;\" href='" & $url & "' data-height=700 data-width=1000 data-refresh=true title='Add New Why in PopUp'>Add Why</a>"; var text CompleteAdd ="<a class=\"Vibrant Success OpenAsPopup\" style=\"width:120px; text-align: center;\" href='" & $url & "' data-height=700 data-width=1000 data-refresh=true title='Add New Why in PopUp'>Add More</a>"; var text NA ="<a class=\"Vibrant Snowy\" style=\"width:120px; text-align: center;\" ')>NA</a>"; If([Result] = "Valid",If([Why Why Analysis Complete?] = true,$CompleteAdd,$Add),"NA")
Need a function which indicates that form is in view mode or edit mode to modify the URL accordingly.