I have a calc element which is a hyperlink formed using a value of the record (to link to a 'subform' with related data, in this case images). My calc element is on a form with a repeating group - you might be able to see why I need a subform, given the problem with Ajax upload and repeating groups...
I want to be able to see it in list and detail view, but hide it in form view and I hope the reason is obvious...
In form view (data entry) when you add a new group within the record the new calc element has the wrong hyperlink (it takes its value as the first 'row' in the joined group). It is also confusing for someone entering data because that link would take them to another form before they have completed all the 'repeat groups' in the first stage of data entry. The subform is the repeat group data (as a single form) which includes an ajax upload element - this has 'solved' the big problem I have been having with the repeat groups, even though its a bit clunky, so just the final hurdle to make it usable.
Things I have tried:
Element hidden - fine for list view, but hidden in detail view and form view.
Javascript hide on load - if the id is null, hide calc - doesn't work
Access levels - the hyperlink is still clickable no matter what access level is set to (so you can see but can't change the element)
Calc on save - means that in list and details view the element is also empty
Ajax calc - watch for change of id (but this doesn't change until the record is saved?)
Any help on this would be appreciated.
Kind regards
I want to be able to see it in list and detail view, but hide it in form view and I hope the reason is obvious...
In form view (data entry) when you add a new group within the record the new calc element has the wrong hyperlink (it takes its value as the first 'row' in the joined group). It is also confusing for someone entering data because that link would take them to another form before they have completed all the 'repeat groups' in the first stage of data entry. The subform is the repeat group data (as a single form) which includes an ajax upload element - this has 'solved' the big problem I have been having with the repeat groups, even though its a bit clunky, so just the final hurdle to make it usable.
Things I have tried:
Element hidden - fine for list view, but hidden in detail view and form view.
Javascript hide on load - if the id is null, hide calc - doesn't work
Access levels - the hyperlink is still clickable no matter what access level is set to (so you can see but can't change the element)
Calc on save - means that in list and details view the element is also empty
Ajax calc - watch for change of id (but this doesn't change until the record is saved?)
Any help on this would be appreciated.
Kind regards