Same field on form twice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2019 05:32 AM
Hello all,
I have a requirement to include a field twice on the same form: once in the main section and once on a separate tab.
The issue is: on the main section it must be read only, and on the other tab it must be writable. So I don’t think I can achieve this the ‘normal’ way with g_form and might have to use DOM manipulation instead (which I have little experience at). Can anyone advise on how best to achieve this?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2019 05:34 AM
Hi,
Why dont you have 2 different fields and sync it between themselves using a business rule. You can have one set as read only and other as editable.
A sample usage OOB is state and incident_state on incident table even though the purpose was different in this case.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2019 08:08 AM
I'm having a really difficult time understanding WHY. It sounds like the requestor is expressing the need in components they understand, rather than expressing the deeper issue for which there's probably 100 better solutions.
In what universe is a UX better for making you go to another tab to populate a field you can already see.
I'll bet money the situation is something like "Everyone can see the first field, but not everyone can see the other tab, so we have to have the field on each".
The best way to achieve this is not to achieve it. Find out the real itch they're trying to scratch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2019 01:24 PM
You're probably right with "Everyone can see the first field, but not everyone can see the other tab, so we have to have the field on each".
The customer has been pretty specific about this requirement but I will question it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2019 01:36 PM
If so , making this field editable for only the people , who can see the tab, make more sense than adding it twice on same form