Forums

Direct row wrditing with a drop down in CC5

NickOg 09 Aug, 2015
I have tried to adapt http://www.chronoengine.com/forums/posts/f12/t99982/direct-row-editing-using-radio-buttons.html?hilit=direct+row+editing to make a drop drown with a set of digits - 1 to 100. I can manually code a <select><option set but that is messy code, Somethimg like
 "<select><option value='24'".($cell=='24'?'selected=\"selected\"':' ').">24</option><option value='25'".($cell=='25'?'selected=\"selected\"':' ').">25</option><option value='26'".($cell=='26'?'selected=\"selected\"':' ').">26</option><option value='27'".($cell=='27'?'selected=\"selected\"':' ').">27</option><option value='28'".($cell=='28'?'selected=\"selected\"':' ').">28</option><option value='29'".($cell=='29'?'selected':' ').">29</option><option value='30'".($cell=='30'?'selected=\"selected\"':' ').">30</option><option value='31'".($cell=='31'?'selected=\"selected\"':' ').">31</option></select>"


I need to make a field with a for ($1=1;$i<100;$i++)

I can't work out either how to include that in the HTML or PHP field. Neither can i work out how to get a reference to a function in my own library.

Can anyone help with these two related questions?

Regards
Nick
This topic is locked and no more replies can be posted.