Skip to main content
Known Participant
May 6, 2020
Question

Field option in Variables area under the Insert tab

  • May 6, 2020
  • 3 replies
  • 1149 views

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 has been closed for replies.

    3 replies

    Community Expert
    May 8, 2020

    Does that fix your issue?

    Community Expert
    May 6, 2020

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

    Known Participant
    May 8, 2020

    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.

    Community Expert
    May 6, 2020

    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:

     

    Known Participant
    May 6, 2020

    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.