Solved! Go to Solution.
Two things:
<!-- Step 1 --> <fieldset id="Step1View" style="display:none"> <legend>XMSG("Signing into system")</legend> </fieldset> <!-- Step 2 --> <fieldset id="Step2View" style="display:none"> <legend>XMSG("Welcome Page")</legend>
Do you have javascript code which changes the display setting? Is it being loaded properly? I noticed you are referencing an import of ABC.js. Does ABC.js unhide these fieldsets? Are you sure it is getting loaded without errors?
When you are debugging the HTML GUI, you can select Debug -> Show CEF Developer Tools:
When you click into your tool you will be presented with a debug screen that looks something like this:
Make sure there are no errors and that your javascript is being loaded properly.
I have included JS in the file, but it serves no purpose. I made this a very limited app to show that the radio button does not display, although the check button does display.
In the attached file, you will see three radio buttons and three checkboxes. The checkboxes work fine, but the radio buttons do not display.
Any guidance is much appreciated!
Thanks for your reply, I attached my full HTML and Javascript below:
HTML
Javascript:
Well, this is a bit strange. There is a style coming from the Alteryx library include that is forcing radio buttons to be transparent (opacity of 0):
You can force the opacity back to 1 by adding a <style> tag to your header with the appropriate settings. Something like this:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>XMSG("PwC_Tool")</title> <script type="text/javascript"> // Include version 1 of the base GUI library. document.write('<link rel="import" href="' + window.Alteryx.LibDir + '1/lib/alteryx/gui/includes.html">'); //document.write('<link rel="import" href="' + window.Alteryx.LibDir + '2/lib/includes.html">'); </script> <!-- Update Name of Script File --> <script type="text/javascript" src='ABC_Tool.js'></script> <!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> --> <style> input[type=radio] {opacity: 1;} </style> </head> <body> <!-- Step 1 --> <fieldset id="Step1View" style="display:block"> <legend>XMSG("Signing into system")</legend> <form action=""> <input type="radio" name="gender" value="male"> Male<br> <input type="radio" name="gender" value="female"> Female<br> <input type="radio" name="gender" value="other"> Other </form> <form action=""> <input type="checkbox" name="gender" value="male"> Male<br> <input type="checkbox" name="gender" value="female"> Female<br> <input type="checkbox" name="gender" value="other"> Other </form> </fieldset> </body> </html>
I am not sure why Alteryx would do this, but you will want to check your GUI to make sure there are no unintended visual artifacts as a result. If so, you could always assign your radio buttons to a class and then style based on the class rather than on a radio button inputs.