In the screenshot, the current selected tab is 'View 1'. If you want to check which tab is selected, you can use tabs1.value === 'View 1', it would return true.
Assuming the tabs component you have is tabs1 and the key for the tabs is mRemark1, mRemark2, mRemark3. You would use tabs1.value === 'mRemark1', tabs1.value === 'mRemark2', tabs1.value === 'mRemark3'. They should return true depending on which tab is selected.
Lenti:
I am new to this type of code. From my research, the best code I can come up with under the OK button is:
if tabs2.value === "Remark 1" then localStorage.setValue('mRemark1', textInput43.val);
elseif tab2.value === "Remark 2" then localStorage.setValue('mRemark1', textInput44.val);
else localStorage.setValue('mRemark1', textInput42.val);
end if
Unfortunately this doesn't work.
I have included some screen captures to clarify my screen environment.