Hello Everyone,
I am using rich text display field to capture ranting from user.
I want that field to be required and i am not able to figure it out how to do that.
Your help will be appreciated.
Below is the code i am using.
a!richTextDisplayField( label: "Rating", value: { a!forEach( items: enumerate(ri!totalStars), expression: { a!richTextIcon( icon: if( fv!index <= ri!rating, "star", "star-o" ), link: a!dynamicLink( value: if(ri!rating=fv!index, 0, fv!index), saveInto: ri!rating ), linkstyle: cons!MMS_DG_LINK_STYLE[2], color: cons!MMS_DG_BOX_STYLE[2], size: cons!MMS_DG_LINK_SIZE[1] ) } ) } )
Discussion posts and replies are publicly visible
dilipg9160 One of the Approach would be to use Validation like as we will be storing the value at some place and By Default it will be null .
Hence on Click of Button we can find if its still null it will display an error else we will Proceed .
Normal if else will Take care of Such .
Another Approach would be to Disable the Button Until all the Values are not null .
Thank you Daisy Singh