I'm new to PeopleSoft and Application Designer. I'm working on Peoplesoft 9.0. I want to create a custom button appearance with a custom CSS style.
I added a button to a page.
I created a Style Sheet with Type (Free Form Style-sheet) with the following script and saved it with the name "Design":
.button1 { background-color:#FFF0F5; color: black; padding: 8px 32px; text-align: center; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer; -moz-border-radius: 7px; -webkit-border-radius: 7px;}
- In the Component's PostBuild PeopleCode event, I added the following line:
AddStyleSheet(StyleSheet.DESIGN);
But when I double-click on one of the buttons to add the style on it, in the Type tab and style field I can't find the custom style I created named "Design".
I tried to add (button1 - .button1 - # button1) in the Fluid tab and Default Style Name.
I also added this CSS in the branding in the PeopleSoft application via the PIA.
But nothing works and the button uses the default style.
Any help is appreciated.