January 16, 201411 yr I have a merge field as a button. It is a repeating field individually and the button name is the result. It works fine. But I need to find out which button is clicked and its repetition number tells me that. I tried using Get(Repetition) and Get(CalcRepetition) and GetLayoutAttribute and a few other things even passing parameter of Get(ActiveFieldContent) but nothing so far works. I suppose I could go back to the regular fields as the buttons but I did a lot of work already. Also I would like to know for next time any way. I see the field name and value quite clearly but how to get them? Thank you for reading.
January 16, 201411 yr Author I worked on this over four hours before posting and now i think I know how. I can just put a 1 in the script parameter for the first repetition and so on. But is that the best way? I guess if it works it is good but that does not mean GOOD.
January 16, 201411 yr I can just put a 1 in the script parameter for the first repetition and so on. But is that the best way? Yes. When you turn a field (merged or not) into a button, you click the button, not the field. The field itself does not activate and there is no way to get anything from or about it.
January 22, 201411 yr Author Sorry for late response it was unavoidable. This makes sense, thank you very much again, Comment.
January 22, 201411 yr Yes. When you turn a field (merged or not) into a button, you click the button, not the field. The field itself does not activate and there is no way to get anything from or about it. But you could make the (non-merged) field repetitions enterable and use an OnObjectEnter trigger to get the repetition with Get ( ActiveRepetitionNumber ).
January 22, 201411 yr you could make the (non-merged) field repetitions enterable and use an OnObjectEnter trigger Yes, you could. I don't like it much myself in terms of the visual feedback - but it is an option.
Create an account or sign in to comment