Skip to main content
Known Participant
May 6, 2020 3:31 AM UTC
Question

Field option in Variables area under the Insert tab

When I insert the Field with the date "yyyy" format, it inserts in the HTML the following code:

<?rh-variable_start name="date" format="yyyy" showcode="showcode" value="43956.371377" ?>.

 

What value="43956.371377" means? Is it safe to delete it? What role it plays?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    Community Expert
    May 8, 2020 7:53 AM UTC

    Does that fix your issue?

    Translate
    Community Expert
    May 6, 2020 5:07 AM UTC

    Assuming Robohelp Classic, try double-clicking on the field and unticking the "Auto-update this field" checkbox.

    Translate
    Known Participant
    May 8, 2020 7:33 AM UTC

    I tried it. This is how the code looks like now:

    <?rh-variable_start name="date"
    format="yyyy" showcode="showcode" value="43958.542095" constant="TRUE" ?>

     

    There is one more item Constant now.

    Translate
    Community Expert
    May 6, 2020 4:37 AM UTC

    That's the date represented as a number, so if you delete it, I imagine you'd break the field.

     

    Try this in Excel to see what I mean.

     

    Type a date.

     

     

     

    Change the format to Number and the date changes to something similar to the field value:

     

    Translate
    Known Participant
    May 6, 2020 5:03 AM UTC

    Thanks.

    Challenge is it keeps on changing whenever I edit anything in that topic where I inserted this field. So, I was just looking for a way where I can fix the field.

    Translate