How to move Radio button into Tab

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
Sai chi
Posts: 19
Joined: 2017-08-26 15:29

How to move Radio button into Tab

Post by Sai chi » 2017-10-29 11:56

Just a sample Question why cannot move Radio Button to Tabs


Just follow all the same as the course, I can move everything except the radio button into Tab

https://gist.github.com/AppGiniCourse/4 ... b811f04d65

How to move Radio button into Tab?
Attachments
radio into tab.jpg
radio into tab.jpg (89.86 KiB) Viewed 2509 times

Abeer
Posts: 18
Joined: 2017-03-12 09:19

Re: How to move Radio button into Tab

Post by Abeer » 2017-11-13 07:47

can you post your code here please?

Sai chi
Posts: 19
Joined: 2017-08-26 15:29

Re: How to move Radio button into Tab

Post by Sai chi » 2017-11-13 09:41

The instructor tells me the answer as follow


Radio buttons can be moved in almost the same manner with just one minor difference: append a '0' (zero character) to the name of the field in your code ... so instead of:

$j('#CompanyName').parents('.form-group').appendTo('#customer-info');

It should become:

$j('#CompanyName0').parents('.form-group').appendTo('#customer-info');

Explanation: Each radio button choice gets an id value the same as the field name + an index starting with 0.

Post Reply